Skip to content
Snippets Groups Projects
  1. Apr 29, 2011
    • Scott Wood's avatar
      Handle most LDSCRIPT setting centrally · 83b7e2a7
      Scott Wood authored
      
      Currently, some linker scripts are found by common code in config.mk.
      Some are found using CONFIG_SYS_LDSCRIPT, but the code for that is
      sometimes in arch config.mk and sometimes in board config.mk.  Some
      are found using an arch-specific rule for looking in CPUDIR, etc.
      
      Further, the powerpc config.mk rule relied on CONFIG_NAND_SPL
      when it really wanted CONFIG_NAND_U_BOOT -- which covered up the fact
      that not all NAND_U_BOOT builds actually wanted CPUDIR/u-boot-nand.lds.
      
      Replace all of this -- except for a handful of boards that are actually
      selecting a linker script in a unique way -- with centralized ldscript
      finding.
      
      If board code specifies LDSCRIPT, that will be used.
      Otherwise, if CONFIG_SYS_LDSCRIPT is specified, that will be used.
      
      If neither of these are specified, then the central config.mk will
      check for the existence of the following, in order:
      
      $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
      $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
      $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
      $(TOPDIR)/$(CPUDIR)/u-boot.lds
      
      Some boards (sc3, cm5200, munices) provided their own u-boot.lds that
      were dead code, because they were overridden by a CPUDIR u-boot.lds under
      the old powerpc rules.  These boards' own u-boot.lds have bitrotted and
      no longer work -- these lds files have been removed.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Tested-by: default avatarGraeme Russ <graeme.russ@gmail.com>
      83b7e2a7
  2. Apr 20, 2011
  3. 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
  4. Apr 11, 2011
  5. Mar 22, 2011
  6. Jan 25, 2011
  7. Nov 27, 2010
    • Wolfgang Denk's avatar
      POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections · c08e5cf7
      Wolfgang Denk authored
      
      The switch from archive libraries to partial linking has introduced a
      number of problems, that are non-trivial to solve.  For example, it is
      no longer possible to include individual object files in the linker
      script as we did before for example in the case of boards with
      embedded environment to fill up the gap caused by the need to align
      the environment on flash erase block boundaries.
      
      The best (but unfortunately not easiest) approach to address this
      problem is to enable -ffunction-sections (and -fdata-sections) so
      we can again (and even in much finer granularity) place certain code
      where we want it.  When doing this step, it seems only consequent to
      also add --gc-sections which has the added benefit of reducing the
      memory footprint of the U-Boot image (both in flash and in RAM).
      
      Unfortunately, this requires changes to a lot of linker scripts.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      c08e5cf7
  8. Nov 26, 2010
    • Wolfgang Denk's avatar
      arch/powerpc/*/config.mk: make CONFIG_SYS_LDSCRIPT settings work · fa11dbe5
      Wolfgang Denk authored
      
      As we try to get rid of board specific config.mk files we must
      provide a way for board specific settings of the LDSCRIPT variable
      (path to the linker script) where needed.
      
      We now implement the following hierarchy:
      
      - Highest priority has a "#define CONFIG_SYS_LDCONFIG" in the board
        config file.
      - If CONFIG_SYS_LDCONFIG is not set, and the system is booting from
        NAND (CONFIG_NAND_SPL is set), then a board specific linker
        script board/$(BOARDDIR)/u-boot-nand.lds gets used.
      - If we are not booting from NAND, we test if a processor specific
        linker script arch/powerpc/cpu/$(CPU)/u-boot.lds exists; if so we
        use that.
      - As default, arch/powerpc/config.mk gets used.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Kumar Gala <kumar.gala@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      fa11dbe5
  9. Apr 21, 2010
  10. Apr 13, 2010
  11. Oct 03, 2009
    • 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
    • Peter Tyser's avatar
      ppc: Enable full relocation to RAM · 85829017
      Peter Tyser authored
      
      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: default avatarPeter Tyser <ptyser@xes-inc.com>
      85829017
  12. 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
  13. Jul 20, 2009
  14. Jul 19, 2009
    • Mike Frysinger's avatar
      push CROSS_COMPILE out to $(ARCH)_config.mk · 1ea6bcd8
      Mike Frysinger authored
      
      Each arch should handle setting a proper default CROSS_COMPILE value in
      their own config.mk file rather than having to maintain a large ugly list
      in the Makefile.  By using conditional assignment, we don't have to worry
      about the variable already being set (env/cmdline/etc...).
      
      The common config.mk file takes care of exporting CROSS_COMPILE already,
      and while a few variables (toolchain ones) utilize CROSS_COMPILE before
      including the arch config.mk, they do so with deferred assignment.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      1ea6bcd8
  15. Sep 06, 2008
  16. Nov 10, 2002
    • Wolfgang Denk's avatar
      * Vince Husovsky, 7 Nov 2002: · 7f6c2cbc
      Wolfgang Denk authored
        Add "-n" to linker options to get rid of "Not enough room for
        program headers" problem
      
      * Patch by David Mller, 05 Nov 2002
        Rename CONFIG_PLL_INPUT_FREQ to CONFIG_SYS_CLK_FREQ
        so we can use an already existing name
      
      * Patch by Pierre Aubert, 05 Nov 2002
        Hardware related improvements in FDC boot code
      
      * Patch by Holger Schurig, 5 Nov 2002:
        Make the PXA really change it's frequency
      
      * Patch by Pierre Aubert, 05 Nov 2002
        Add support for slave serial Spartan 2 FPGAs
      
      * Fix uninitialized memory (MAC address) in 8xx SCC/FEC ethernet
        drivers
      7f6c2cbc
  17. Aug 14, 2002
  18. Nov 29, 2001
  19. Aug 05, 2001
  20. May 29, 2001
  21. Feb 28, 2001
  22. Jul 10, 2000
Loading