path: root/arch/nios2
diff options
authorScott Wood <>2011-04-06 13:31:37 +0000
committerWolfgang Denk <>2011-04-30 00:59:47 +0200
commit83b7e2a7f2f9cf7651e623c75aa9a27ad6488fb3 (patch)
treeded021bb78977fe1a1686fb8868535bc7a509406 /arch/nios2
parentec9a3740415ba613d0d84890fdb426e576a7eeef (diff)
Handle most LDSCRIPT setting centrally
Currently, some linker scripts are found by common code in Some are found using CONFIG_SYS_LDSCRIPT, but the code for that is sometimes in arch and sometimes in board Some are found using an arch-specific rule for looking in CPUDIR, etc. Further, the powerpc 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/ 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 will check for the existence of the following, in order: $(TOPDIR)/board/$(BOARDDIR)/ (only if CONFIG_NAND_U_BOOT) $(TOPDIR)/$(CPUDIR)/ (only if CONFIG_NAND_U_BOOT) $(TOPDIR)/board/$(BOARDDIR)/ $(TOPDIR)/$(CPUDIR)/ Some boards (sc3, cm5200, munices) provided their own that were dead code, because they were overridden by a CPUDIR under the old powerpc rules. These boards' own have bitrotted and no longer work -- these lds files have been removed. Signed-off-by: Scott Wood <> Tested-by: Graeme Russ <>
Diffstat (limited to 'arch/nios2')
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/nios2/ b/arch/nios2/
index d241a96e8e..e58ea24d2c 100644
--- a/arch/nios2/
+++ b/arch/nios2/
@@ -29,7 +29,5 @@ STANDALONE_LOAD_ADDR ?= 0x02000000
LDFLAGS_FINAL += --gc-sections
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
OpenPOWER on IntegriCloud