1. 20 Sep, 2013 1 commit
  2. 12 Sep, 2013 1 commit
    • Tom Rini's avatar
      Revert "standalone-examples: support custom GCC lib" · 8386ca8b
      Tom Rini authored
      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 4412db46.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      8386ca8b
  3. 06 Sep, 2013 1 commit
  4. 24 Jul, 2013 2 commits
  5. 11 Jun, 2013 1 commit
  6. 15 Mar, 2013 1 commit
  7. 04 Feb, 2013 1 commit
  8. 22 Oct, 2012 1 commit
  9. 16 Oct, 2012 1 commit
    • Zhi-zhou Zhang's avatar
      MIPS: add board qemu-mips64 support · 32afad78
      Zhi-zhou Zhang authored
      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: default avatarZhizhou Zhang <etou.zh@gmail.com>
      Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      32afad78
  10. 26 Mar, 2012 1 commit
  11. 13 Jan, 2012 1 commit
  12. 06 Dec, 2011 1 commit
  13. 15 Nov, 2011 1 commit
  14. 03 Nov, 2011 1 commit
    • Wolfgang Denk's avatar
      Reduce build times · cca4e4ae
      Wolfgang Denk authored
      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 <board>
      	-> 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: default avatarWolfgang Denk <wd@denx.de>
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Albert Aribaud <albert.aribaud@free.fr>
      cc: Graeme Russ <graeme.russ@gmail.com>
      cc: Mike Frysinger <vapier@gentoo.org>
      Tested-by: default avatarGraeme Russ <graeme.russ@gmail.com>
      Tested-by: default avatarMatthias Weisser <weisserm@arcor.de>
      Tested-by: default avatarSanjeev Premi <premi@ti.com>
      Tested-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarMacpaul Lin <macpaul@gmail.com>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      cca4e4ae
  15. 21 Oct, 2011 2 commits
    • Macpaul Lin's avatar
      nds32: standalone support · 72c73dde
      Macpaul Lin authored
      Add standalone program related support for nds32 architecture.
      Signed-off-by: default avatarMacpaul Lin <macpaul@andestech.com>
      72c73dde
    • Che-liang Chiou's avatar
      examples: api: allow build with private libgcc · 349e83f0
      Che-liang Chiou authored
      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: default avatarChe-Liang Chiou <clchiou@chromium.org>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      349e83f0
  16. 17 Oct, 2011 1 commit
  17. 12 May, 2011 2 commits
    • Joakim Tjernlund's avatar
      Fix a few gcc warnings. · cd8c8775
      Joakim Tjernlund authored
      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: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      cd8c8775
    • Che-liang Chiou's avatar
      Fix variable flavor in examples/standalone/Makefile · 0da43893
      Che-liang Chiou authored
      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 <<\EOF
      obj := /path/to/obj/
      ELF := hello_world
      
      BIN_rec = $(addsuffix .bin,$(ELF))      # recursively expanded
      BIN_sim := $(addsuffix .bin,$(ELF))     # simply expanded
      
      ELF := $(addprefix $(obj),$(ELF))
      BIN_rec := $(addprefix $(obj),$(BIN_rec))
      BIN_sim := $(addprefix $(obj),$(BIN_sim))
      
      show:
      	@echo BIN_rec=$(BIN_rec)
      	@echo BIN_sim=$(BIN_sim)
      
      .PHONY: show
      EOF
      $ make show
      BIN_rec=/path/to/obj//path/to/obj/hello_world.bin
      BIN_sim=/path/to/obj/hello_world.bin
      Signed-off-by: default avatarChe-Liang Chiou <clchiou@chromium.org>
      0da43893
  18. 09 May, 2011 1 commit
  19. 13 Apr, 2011 1 commit
  20. 12 Apr, 2011 1 commit
    • Wolfgang Denk's avatar
      Make STANDALONE_LOAD_ADDR configurable per board · 8ae86b76
      Wolfgang Denk authored
      Rename STANDALONE_LOAD_ADDR into CONFIG_STANDALONE_LOAD_ADDR
      and allow that the architecture-specific default value gets
      overwritten by defining the value in the board header file.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Tsi Chung Liew <tsi-chung.liew@freescale.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      8ae86b76
  21. 31 Mar, 2011 1 commit
  22. 27 Mar, 2011 1 commit
  23. 09 Jan, 2011 1 commit
  24. 17 Nov, 2010 1 commit
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      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: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  25. 12 Oct, 2010 1 commit
    • Peter Tyser's avatar
      examples/standalone: Use gcc's -fno-toplevel-reorder · c91d456c
      Peter Tyser authored
      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 620bbba5
      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: default avatarPeter Tyser <ptyser@xes-inc.com>
      c91d456c
  26. 04 Sep, 2010 1 commit
  27. 12 Jul, 2010 1 commit
  28. 04 Jul, 2010 2 commits
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
    • Wolfgang Denk's avatar
      Make *printf() return "int" instead of "void" · d9c27253
      Wolfgang Denk authored
      Change the return type of the *printf() functions to the standard
      "int"; no changes are needed but returning the already available
      length count.
      
      This will save a few additional strlen() calls later...
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      d9c27253
  29. 29 Jun, 2010 1 commit
    • Peter Tyser's avatar
      examples/standalone: Remove relocation compile flags for PowerPC · 620bbba5
      Peter Tyser authored
      Previously, standalone applications were compiled with gcc flags that
      produced relocatable executables on the PowerPC architecture (eg with
      the -mrelocatable and -fPIC flags).  There's no reason for these
      applications to be fully relocatable at this time since no relocation
      fixups are performed on standalone applications.
      
      Additionally, removing the gcc relocation flags results in the entry
      point of applications residing at the base of the image.  When
      a standalone application was relocatable, the entry point was generally
      located at an offset into the image which was confusing and prone to
      errors.
      
      This change moves the entry point of PowerPC standalone applications
      from 0x40004 (usually) to 0x40000.
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      620bbba5
  30. 28 May, 2010 2 commits
  31. 21 Apr, 2010 1 commit
  32. 13 Apr, 2010 3 commits
  33. 12 Mar, 2010 1 commit
    • Wolfgang Denk's avatar
      standalone eepro100_eeprom: fix build error · 4e72fb15
      Wolfgang Denk authored
      Building examples/standalone/eepro100_eeprom triggers this error:
      
      In file included from include/common.h:629,
                       from eepro100_eeprom.c:24:
      include/net.h: In function 'NetReadIP':
      include/net.h:430: warning: implicit declaration of function 'memcpy'
      eepro100_eeprom.c: At top level:
      eepro100_eeprom.c:81: error: conflicting types for 'memcpy'
      include/net.h:430: error: previous implicit declaration of 'memcpy' was here
      
      Fix this.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      4e72fb15