07 Feb, 2014

1 commit


10 Jan, 2014

1 commit


09 Jan, 2014

1 commit


16 Dec, 2013

3 commits


12 Dec, 2013

1 commit

  • The standalone programs do not use the api calls, but rely
    directly on u-boot variable gd->jt for the jump table. Commit
    fe1378a - "ARM: use r9 for gd" changed the register holding
    the address of gd, but the assembly code in the standalone
    examples was not updated accordingly. This broke the programs
    on ARM relying on the jumptable in the v2013.10 release.
    This patch unbricks them by using the correct register.

    Cc: Michal Simek
    Cc: Albert ARIBAUD
    Signed-off-by: Jeroen Hofstee

    Jeroen Hofstee
     

25 Nov, 2013

2 commits


16 Nov, 2013

1 commit


08 Nov, 2013

1 commit


05 Nov, 2013

1 commit


20 Sep, 2013

1 commit


12 Sep, 2013

1 commit

  • After further testing, this patch has two problems. First,
    examples/standalone/Makefile was already inherting PLATFORM_LIBS from
    the top-level Makefile so this lead to duplicating the private libgcc.
    Second, currently the private libgcc has a reference to 'hang' that is
    not being fulfilled.

    This reverts commit 4412db46468d5965da736d06f84d13e68a6e0b51.

    Signed-off-by: Tom Rini

    Tom Rini
     

07 Sep, 2013

1 commit


24 Jul, 2013

2 commits


12 Jun, 2013

1 commit


16 Mar, 2013

1 commit


04 Feb, 2013

1 commit


22 Oct, 2012

1 commit


16 Oct, 2012

1 commit

  • Both big-endian and little-endian are tested with below commands:
    Rom version: (Default, Now we config it as rom version)
    qemu-system-mips64el -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic
    qemu-system-mips64 -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic
    Ram version:
    qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
    qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic

    Signed-off-by: Zhizhou Zhang
    Signed-off-by: Daniel Schwierzeck

    Zhi-zhou Zhang
     

27 Mar, 2012

1 commit


14 Jan, 2012

1 commit


07 Dec, 2011

1 commit


16 Nov, 2011

1 commit


04 Nov, 2011

1 commit

  • U-Boot Makefiles contain a number of tests for compiler features etc.
    which so far are executed again and again. On some architectures
    (especially ARM) this results in a large number of calls to gcc.

    This patch makes sure to run such tests only once, thus largely
    reducing the number of "execve" system calls.

    Example: number of "execve" system calls for building the "P2020DS"
    (Power Architecture) and "qong" (ARM) boards, measured as:
    -> strace -f -e trace=execve -o /tmp/foo ./MAKEALL
    -> grep execve /tmp/foo | wc -l

    Before: After: Reduction:
    ==================================
    P2020DS 20555 15205 -26%
    qong 31692 14490 -54%

    As a result, built times are significantly reduced, typically by
    30...50%.

    Signed-off-by: Wolfgang Denk
    Cc: Andy Fleming
    Cc: Kumar Gala
    Cc: Albert Aribaud
    cc: Graeme Russ
    cc: Mike Frysinger
    Tested-by: Graeme Russ
    Tested-by: Matthias Weisser
    Tested-by: Sanjeev Premi
    Tested-by: Simon Glass
    Tested-by: Macpaul Lin
    Acked-by: Mike Frysinger

    Wolfgang Denk
     

22 Oct, 2011

2 commits

  • Add standalone program related support for nds32 architecture.

    Signed-off-by: Macpaul Lin

    Macpaul Lin
     
  • The examples/api is not configured with USE_PRIVATE_LIBGCC. This makes
    building examples/api break on certain boards that do not/cannot use the
    public libgcc.

    Nevertheless, this patch has to also touch the top-level Makefile to fix
    this problem because the current top-level Makefile does not specify
    libgcc as a prerequisite of examples/api, and explicitly builds
    examples/api _before_ libgcc.

    For testing this patch, I added the following to configs/seaboard.h and
    ran demo.bin on a Seaboard.

    +#define CONFIG_API
    +#define CONFIG_SYS_MMC_MAX_DEVICE 2
    +#define CONFIG_CMD_NET
    +#define CONFIG_NET_MULTI

    Signed-off-by: Che-Liang Chiou
    Acked-by: Mike Frysinger

    Che-liang Chiou
     

18 Oct, 2011

1 commit


13 May, 2011

2 commits

  • Noticed while building all of mpc8xx. Also
    constify usage string in timer.c
    Warnings fixed are:
    timer.c: In function 'timer':
    timer.c:189: warning: format not a string literal and no format arguments
    timer.c:258: warning: format not a string literal and no format arguments
    atm.c: In function 'atmUnload':
    atm.c:99: warning: array subscript is above array bounds
    atm.c: In function 'atmLoad':
    atm.c:65: warning: array subscript is above array bounds
    codec.c: In function 'codsp_write_pop_int':
    codec.c:678: warning: array subscript is above array bounds
    codec.c: In function 'codsp_write_cop_short':
    codec.c:585: warning: array subscript is above array bounds
    codec.c: In function 'codsp_write_sop_int':
    codec.c:512: warning: array subscript is above array bounds

    Signed-off-by: Joakim Tjernlund

    Joakim Tjernlund
     
  • GNU Makefile have two flavors of variables, recursively expanded that is
    defined by using '=', and simply expanded that is defined by using ':='.

    The bug is caused by using recursively expanded flavor for BIN and SREC.
    As you can see below, they are prepended by $(obj) twice.

    We can reproduce this bug with a simplified version of this Makefile:
    $ cat >Makefile <

    Che-liang Chiou
     

09 May, 2011

1 commit

  • All architectures but MIPS are using --gc-sections on final linking.
    This patch introduces that feature for MIPS to reduce the memory and
    flash footprint.

    Signed-off-by: Daniel Schwierzeck
    Cc: Wolfgang Denk
    Cc: Stefan Roese
    Cc: Thomas Lange
    Cc: Vlad Lungu
    Signed-off-by: Shinya Kuribayashi

    Daniel Schwierzeck
     

13 Apr, 2011

2 commits


31 Mar, 2011

1 commit

  • Commit 44c6e65 "rename _end to __bss_end__ broke building of a large
    number of systems (at least all PowerPC?):

    libstubs.o: In function `app_startup':
    examples/standalone/stubs.c:197: undefined reference to `__bss_end__'

    The rename should not be done for the files in the
    examples/standalone/ directory, as these are not using the code from
    start.S, but do their own BSS clearing, and either use their own
    linker scripts or the ones provided by the compilers.

    Signed-off-by: Po-Yu Chuang
    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

28 Mar, 2011

1 commit


10 Jan, 2011

1 commit


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
     

13 Oct, 2010

1 commit

  • Using -fno-toplevel-reorder causes gcc to not reorder functions. This
    ensures that an application's entry point will be the first function in
    the application's source file.

    This change, along with commit 620bbba524fbaa26971a5004793010b169824f1b
    should cause a standalone application's entry point to be at the base of
    the compiled binary. Previously, the entry point could change depending
    on gcc version and flags.

    Note -fno-toplevel-reorder is only available in gcc version 4.2 or
    greater.

    Signed-off-by: Peter Tyser

    Peter Tyser