20 Feb, 2014

2 commits

  • This commit refactors cleaning targets such as
    clean, clobber, mrpropper, distclean
    with scripts/Makefile.clean.

    By using scripts/Makefile.clean, we can recursively descend
    into subdirectories and delete generated files there.

    We do not need add a big list of generated files
    to the "clean" target.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This commit changes the working directory
    where the build process occurs.

    Before this commit, build process occurred under the source
    tree for both in-tree and out-of-tree build.

    That's why we needed to add $(obj) prefix to all generated
    files in makefiles like follows:
    $(obj)u-boot.bin: $(obj)u-boot

    Here, $(obj) is empty for in-tree build, whereas it points
    to the output directory for out-of-tree build.

    And our old build system changes the current working directory
    with "make -C " syntax when descending into the
    sub-directories.

    On the other hand, Kbuild uses a different idea
    to handle out-of-tree build and directory descending.

    The build process of Kbuild always occurs under the output tree.
    When "O=dir/to/store/output/files" is given, the build system
    changes the current working directory to that directory and
    restarts the make.

    Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

25 Jan, 2014

2 commits


01 Nov, 2013

1 commit


15 Oct, 2013

2 commits


20 Sep, 2013

1 commit

  • The SPDX License List version 1.19 now contains an official entry for
    the IBM-pibs license. However, instead of our suggestion "ibm-pibs",
    the SPDX License List uses "IBM-pibs", with the following rationale:
    "The reason being that all other SPDX License List short identifiers
    tend towards using capital letters unless spelling a word. I'd prefer
    to be consistent to this end".

    Change the license IDs to use the official name.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

20 Aug, 2013

1 commit

  • This commit adapts the files that were derived from PIBS (PowerPC
    Initialization and Boot Software) codeto using SPDX License
    Identifiers.

    So far, SPDX has not assigned an official License ID for the PIBS
    license yet, so this should be considered preliminary.

    Note that the following files contained incorrect license information:

    arch/powerpc/cpu/ppc4xx/4xx_uart.c
    arch/powerpc/cpu/ppc4xx/start.S
    arch/powerpc/include/asm/ppc440.h

    These files included, in addition to the GPL-2.0 / ibm-pibs dual
    license as inherited from PIBS, a GPL-2.0+ license header which was
    obviously incorrect. This has been removed.

    Signed-off-by: Wolfgang Denk
    Cc: Stefan Roese
    Signed-off-by: Wolfgang Denk

    Conflicts:
    Licenses/README
    Acked-by: Stefan Roese

    Wolfgang Denk
     

24 Jul, 2013

1 commit


03 Apr, 2013

1 commit

  • Simon Glass' commit 3929fb0a141530551b3fce15ee08629f80d5ef2a,
    which changed all occurrences of __bss__end__ into __bss_end,
    left behind some untouched __bss_end__ occurrences in all 33
    u-boot.lds.debug files, in board/mousse/u-boot.lds.ram and
    in board/mousse/u-boot.lds.rom. These are replaced here.

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

13 Mar, 2013

1 commit

  • Refactor linker-generated array code so that symbols
    which were previously linker-generated are now compiler-
    generated. This causes relocation records of type
    R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
    code which uses LGA able to run before relocation as
    well as after.

    Note: this affects more than ARM targets, as linker-
    lists span possibly all target architectures, notably
    PowerPC.

    Conflicts:
    arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
    arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
    arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
    board/ait/cam_enc_4xx/u-boot-spl.lds
    board/davinci/da8xxevm/u-boot-spl-da850evm.lds
    board/davinci/da8xxevm/u-boot-spl-hawk.lds
    board/vpac270/u-boot-spl.lds

    Signed-off-by: Albert ARIBAUD

    Albert ARIBAUD
     

22 Oct, 2012

2 commits

  • The command declaration now uses the new LG-array method to generate
    list of commands. Thus the __u_boot_cmd section is now superseded and
    redundant and therefore can be removed. Also, remove externed symbols
    associated with this section from include/command.h .

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     
  • Add section for the linker-generated lists into all possible linker
    files, so that everyone can easily use these lists. This is mostly
    a mechanical adjustment.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     

02 Dec, 2011

1 commit


16 Oct, 2011

1 commit

  • The top level Makefile does not do any recursion into subdirs when
    cleaning, so these clean/distclean targets in random arch/board dirs
    never get used. Punt them all.

    MAKEALL didn't report any errors related to this that I could see.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

28 Mar, 2011

1 commit


28 Nov, 2010

1 commit

  • This commit adapts 4xx boards for partial linking with --gc-sections.

    Signed-off-by: Stefan Roese
    Signed-off-by: Wolfgang Denk
    Cc: Stefan Roese
    Cc: Tirumala Marri
    Cc: David Updegraff
    Cc: Matthias Fuchs
    Cc: Dirk Eibach
    Cc: Larry Johnson
    Cc: Peter De Schrijver
    Cc: Niklaus Giger
    Cc: Daniel Poirot
    Acked-by: Stefan Roese

    Wolfgang Denk
     

18 Nov, 2010

1 commit

  • Before this commit, weak symbols were not overridden by non-weak symbols
    found in archive libraries when linking with recent versions of
    binutils. As stated in the System V ABI, "the link editor does not
    extract archive members to resolve undefined weak symbols".

    This commit changes all Makefiles to use partial linking (ld -r) instead
    of creating library archives, which forces all symbols to participate in
    linking, allowing non-weak symbols to override weak symbols as intended.
    This approach is also used by Linux, from which the gmake function
    cmd_link_o_target (defined in config.mk and used in all Makefiles) is
    inspired.

    The name of each former library archive is preserved except for
    extensions which change from ".a" to ".o". This commit updates
    references accordingly where needed, in particular in some linker
    scripts.

    This commit reveals board configurations that exclude some features but
    include source files that depend these disabled features in the build,
    resulting in undefined symbols. Known such cases include:
    - disabling CMD_NET but not CMD_NFS;
    - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.

    Signed-off-by: Sebastien Carlier

    Sebastien Carlier
     

19 Oct, 2010

2 commits

  • Clean up Makefile, and drop a lot of the config.mk files on the way.

    We now also automatically pick all boards that are listed in
    boards.cfg (and with all configurations), so we can drop the redundant
    entries from MAKEALL to avoid building these twice.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • The change is currently needed to be able to remove the board
    configuration scripting from the top level Makefile and replace it by
    a simple, table driven script.

    Moving this configuration setting into the "CONFIG_*" name space is
    also desirable because it is needed if we ever should move forward to
    a Kconfig driven configuration system.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

23 Sep, 2010

1 commit


04 Aug, 2010

1 commit

  • While running from flash, i. e. before relocation, we have only a
    limited C runtime environment without writable data segment. In this
    phase, some configurations (for example with environment in EEPROM)
    must not use the normal getenv(), but a special function. This
    function had been called getenv_r(), with the idea that the "_r"
    suffix would mean the same as in the _r_eentrant versions of some of
    the C library functions (for example getdate vs. getdate_r, getgrent
    vs. getgrent_r, etc.).

    Unfortunately this was a misleading name, as in U-Boot the "_r"
    generally means "running from RAM", i. e. _after_ relocation.

    To avoid confusion, rename into getenv_f() [as "running from flash"]

    Signed-off-by: Wolfgang Denk
    Acked-by: Detlev Zundel

    Wolfgang Denk
     

22 Apr, 2010

1 commit

  • As discussed on the list, move "arch/ppc" to "arch/powerpc" to
    better match the Linux directory structure.

    Please note that this patch also changes the "ppc" target in
    MAKEALL to "powerpc" to match this new infrastructure. But "ppc"
    is kept as an alias for now, to not break compatibility with
    scripts using this name.

    Signed-off-by: Stefan Roese
    Acked-by: Wolfgang Denk
    Acked-by: Detlev Zundel
    Acked-by: Kim Phillips
    Cc: Peter Tyser
    Cc: Anatolij Gustschin

    Stefan Roese
     

13 Apr, 2010

2 commits


02 Nov, 2009

1 commit


03 Oct, 2009

1 commit

  • The following changes allow U-Boot to fully relocate from flash to
    RAM:
    - Remove linker scripts' .fixup sections from the .text section
    - Add -mrelocatable to PLATFORM_RELFLAGS for all boards
    - Define CONFIG_RELOC_FIXUP_WORKS for all boards

    Previously, U-Boot would partially relocate, but statically initialized
    pointers needed to be manually relocated.

    Signed-off-by: Peter Tyser

    Peter Tyser
     

28 Sep, 2009

2 commits


11 Sep, 2009

1 commit

  • This patch cleans up multiple issues of the 4xx register (mostly
    DCR, SDR, CPR, etc) definitions:

    - Change lower case defines to upper case (plb4_acr -> PLB4_ACR)
    - Change the defines to better match the names from the
    user's manuals (e.g. cprpllc -> CPR0_PLLC)
    - Removal of some unused defines

    Please test this patch intensive on your PPC4xx platform. Even though
    I tried not to break anything and tested successfully on multiple
    4xx AMCC platforms, testing on custom platforms is recommended.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

10 Aug, 2009

1 commit

  • It was brought to our attention that U-Boot contains code derived from the
    IBM OpenBIOS source code originally provided with some of the older PowerPC
    4xx development boards. As a result, the original license of this code has
    been carried in the various files for a number of years in the U-Boot project.

    IBM is dual-licensing the IBM code contributions already present in U-Boot
    under either the terms of the GNU General Public License version 2, or the
    original code license already present.

    Signed-off-by: Josh Boyer

    Josh Boyer
     

04 Apr, 2009

1 commit

  • According to the doc/feature-removal-schedule.txt, the "autoscr"
    command will be replaced by the "source" command in approximately 6
    months from now.

    This patch prepares this change and starts a 6 month transition
    period as follows:

    - The new "source" command has been added, which implements exactly
    the same functionlaity as the old "autoscr" command before
    - The old "autoscr" command name is kept as an alias for compatibility
    - Command sequences, script files atc. have been adapted to use the
    new "source" command
    - Related environment variables ("autoscript", "autoscript_uname")
    have *not* been adapted yet; these will be renamed resp. removed in
    a separate patch when the support for the "autoscr" command get's
    finally dropped.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

21 Mar, 2009

1 commit

  • A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
    which needs to be added the the linker script. Instead of just adding this
    one section, we use a wildcard ".rodata*" to get all rodata linker section
    gcc has now and might add in the future.

    However, '*(.rodata*)' by itself will result in sub-optimal section
    ordering. The sections will be sorted by object file, which causes extra
    padding between the unaligned rodata.str.1.1 of one object file and the
    aligned rodata of the next object file. This is easy to fix by using the
    SORT_BY_ALIGNMENT command.

    This patch has not be tested one most of the boards modified. Some boards
    have a linker script that looks something like this:

    *(.text)
    . = ALIGN(16);
    *(.rodata)
    *(.rodata.str1.4)
    *(.eh_frame)

    I change this to:

    *(.text)
    . = ALIGN(16);
    *(.eh_frame)
    *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))

    This means the start of rodata will no longer be 16 bytes aligned.
    However, the boundary between text and rodata/eh_frame is still aligned to
    16 bytes, which is what I think the real purpose of the ALIGN call is.

    Signed-off-by: Trent Piepho

    Trent Piepho
     

19 Nov, 2008

1 commit

  • Most of the bss initialization loop increments 4 bytes
    at a time. And the loop end is checked for an 'equal'
    condition. Make the bss end address aligned by 4, so
    that the loop will end as expected.

    Signed-off-by: Selvamuthukumar
    Signed-off-by: Wolfgang Denk

    Selvamuthukumar
     

10 Nov, 2008

1 commit


21 Oct, 2008

1 commit


19 Oct, 2008

1 commit


11 Sep, 2008

1 commit


07 Sep, 2008

1 commit