Skip to content
Snippets Groups Projects
  1. May 12, 2011
    • 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
  2. Apr 12, 2011
    • 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
  3. Nov 17, 2010
    • 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
  4. Oct 12, 2010
    • 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
  5. Jun 29, 2010
    • 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
  6. Dec 02, 2009
    • Sanjeev Premi's avatar
      Fix build failure in examples/standalone · 604f7ce5
      Sanjeev Premi authored
      
      Some versions of 'make' do not handle trailing white-spaces
      properly. Trailing spaces in ELF causes a 'fake' source to
      be added to the variable COBJS; leading to build failure
      (listed below). The problem was found with GNU Make 3.80.
      
      Using text-function 'strip' as a workaround for the problem.
      
      make[1]: Entering directory `/home/sanjeev/u-boot/examples/standalone'
      arm-none-linux-gnueabi-gcc -g  -Os   -fno-common -ffixed-r8 -msoft-float
      -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/sanjeev/u-boot/include
      -fno-builtin -ffreestanding -nostdinc -isystem /opt/codesourcery/2009q1-
      203/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -pipe  -DCONFIG_
      ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5
      -Wall -Wstrict-prototypes -fno-stack-protector -g  -Os   -fno-common -ff
      ixed-r8 -msoft-float   -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/sanje
      ev/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/co
      desourcery/2009q1-203/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/includ
      e -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-inte
      rwork -march=armv5 -I.. -Bstatic -T u-boot.lds  -Ttext 0x80e80000 -o .c
      arm-none-linux-gnueabi-gcc: no input files
      make[1]: *** [.c] Error 1
      make[1]: Leaving directory `/home/sanjeev/u-boot/examples/standalone'
      make: *** [examples/standalone] Error 2
      premi #
      
      Signed-off-by: default avatarSanjeev Premi <premi@ti.com>
      
      Fixed typo (s/ElF/ELF/).
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      604f7ce5
  7. Oct 03, 2009
    • Mike Frysinger's avatar
      standalone: convert to kbuild style · c0072e6c
      Mike Frysinger authored
      
      Clean up the arch/cpu/board/config checks as well as redundant setting of
      srec/bin variables by using the kbuild VAR-$(...) style.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      c0072e6c
    • Mike Frysinger's avatar
      push LOAD_ADDR out to arch mk files · 8eb7e280
      Mike Frysinger authored
      
      Rather than maintain/extend the current ifeq($(ARCH)) mess that exists in
      the standalone Makefile, push the setting up of LOAD_ADDR out to the arch
      config.mk (and rename to STANDALONE_LOAD_ADDR in the process).  This keeps
      the common code clean and lets the arch do whatever crazy crap it wants in
      its own area.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      8eb7e280
    • Mike Frysinger's avatar
      atmel_df_pow2: standalone to convert dataflashes to pow2 · 2c17527f
      Mike Frysinger authored
      
      Atmel DataFlashes by default operate with pages that are slightly bigger
      than normal binary sizes (i.e. many are 1056 byte pages rather than 1024
      bytes).  However, they also have a "power of 2" mode where the pages show
      up with the normal binary size.  The latter mode is required in order to
      boot with a Blackfin processor, so many people wish to convert their
      DataFlashes on their development systems to this mode.  This standalone
      application does just that.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      2c17527f
  8. Sep 15, 2009
  9. Sep 04, 2009
    • Mike Frysinger's avatar
      push LOAD_ADDR out to arch mk files · 262ae0a6
      Mike Frysinger authored
      
      Rather than maintain/extend the current ifeq($(ARCH)) mess that exists in
      the standalone Makefile, push the setting up of LOAD_ADDR out to the arch
      config.mk (and rename to STANDALONE_LOAD_ADDR in the process).  This keeps
      the common code clean and lets the arch do whatever crazy crap it wants in
      its own area.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      262ae0a6
    • Mike Frysinger's avatar
      atmel_df_pow2: standalone to convert dataflashes to pow2 · 65f6f07b
      Mike Frysinger authored
      
      Atmel DataFlashes by default operate with pages that are slightly bigger
      than normal binary sizes (i.e. many are 1056 byte pages rather than 1024
      bytes).  However, they also have a "power of 2" mode where the pages show
      up with the normal binary size.  The latter mode is required in order to
      boot with a Blackfin processor, so many people wish to convert their
      DataFlashes on their development systems to this mode.  This standalone
      application does just that.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      65f6f07b
  10. Aug 08, 2009
    • Michael Evans's avatar
      Fix examples for OMAP3 boards... · 61c68ae0
      Michael Evans authored
      
      The attached patch corrects an error in the examples/Makefile which
      causes the applications in the examples directory to hang on OMAP3
      based boards. The current Makefile sets -Ttext during linking to
      0x0c100000 which is outside of addressable SDRAM memory. The script
      corrects the existing ifeq...else...endif logic to look at the VENDOR
      tag rather than the CPU tag.
      
      The patch affects the following configs: omap3_beagle_config,
      omap3_overo_config, omap3_evm_config, omap3_pandora_config,
      omap3_zoom1_config and omap3_zoom2_config.
      
      Signed-off-by: default avatarMichael Evans <horse_dung@hotmail.com>
      
      Edited commit message.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      61c68ae0
  11. Jul 20, 2009
  12. Feb 23, 2009
  13. Jan 24, 2009
  14. Aug 31, 2008
  15. Apr 08, 2008
  16. Mar 04, 2008
  17. Mar 02, 2008
    • Woodruff, Richard's avatar
      Fix alignment error on ARM for modules · 118978c8
      Woodruff, Richard authored
      Fix alignment fault on ARM when running modules.  With out an explicit
      linker file gcc4.2.1 will half word align __bss_start's value.  The word
      dereference will crash hello_world.
      
      signed-off-by Richard Woodruff <r-woodruff2@ti.com>
      118978c8
  18. Feb 05, 2008
  19. May 13, 2007
  20. Mar 18, 2007
  21. Oct 24, 2006
  22. Oct 08, 2006
  23. Sep 01, 2006
    • Marian Balakowicz's avatar
      Add support for a saving build objects in a separate directory. · f9328639
      Marian Balakowicz authored
      Modifications are based on the linux kernel approach and
      support two use cases:
      
        1) Add O= to the make command line
        'make O=/tmp/build all'
      
        2) Set environement variable BUILD_DIR to point to the desired location
        'export BUILD_DIR=/tmp/build'
        'make'
      
      The second approach can also be used with a MAKEALL script
      'export BUILD_DIR=/tmp/build'
      './MAKEALL'
      
      Command line 'O=' setting overrides BUILD_DIR environent variable.
      
      When none of the above methods is used the local build is performed and
      the object files are placed in the source directory.
      f9328639
    • Detlev Zundel's avatar
  24. Jun 08, 2006
  25. Jun 02, 2006
  26. Apr 20, 2006
  27. Mar 12, 2006
    • Wolfgang Denk's avatar
      Add ADI Blackfin support · 0afe519a
      Wolfgang Denk authored
      - add support for Analog Devices Blackfin BF533 CPU
      - add support for the ADI BF533 Stamp uClinux board
      - add support for the ADI BF533 EZKit board
      Patches by Richard Klingler, June 11th 2005:
      0afe519a
  28. Jan 26, 2006
  29. May 16, 2005
  30. May 07, 2005
  31. Jan 09, 2005
  32. Oct 10, 2004
  33. Jul 10, 2004
    • Wolfgang Denk's avatar
      * Patch by Fred Klatt, 25 Jun 2004: · 8b07a110
      Wolfgang Denk authored
        Add support for WindRiver's SBC8560 board
      
      * Patch by Nicolas Lacressonniere, 24 Jun 2004
        Small Bugs fixes for "at91rm9200dk" board:
        - Timing modifications for SPI DataFlash access
        - Fix NAND flash detection bug
      
      * Patch by Nicolas Lacressonniere, 24 Jun 2004:
        Add Support for Flash AT49BV6416 for AT91RM9200DK board
      8b07a110
  34. May 19, 2004
Loading