diff options
author | Haiying Wang <Haiying.Wang@freescale.com> | 2011-02-22 21:38:05 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-03-22 22:32:06 (GMT) |
commit | 6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc (patch) | |
tree | 68b8f0f3a430eefbdef343dd62d8c89eebcadb98 /nand_spl/board/freescale/mpc8572ds/Makefile | |
parent | c81c1222427f268d29ba999c82e2477c428e7bab (diff) | |
download | u-boot-6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc.tar.xz |
Introduce a new linker flag LDFLAGS_FINAL
commit 8aba9dceebb14144e07d19593111ee3a999c37fc
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
breaks the usage of --gc-section to build nand_spl. We still need linker option
--gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes
the --gc-sections to each uboot image.
To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace
PLATFORM_LDFLAGS in the Makefile of each nand_spl board.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Diffstat (limited to 'nand_spl/board/freescale/mpc8572ds/Makefile')
-rw-r--r-- | nand_spl/board/freescale/mpc8572ds/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nand_spl/board/freescale/mpc8572ds/Makefile b/nand_spl/board/freescale/mpc8572ds/Makefile index e2181e9..862c014 100644 --- a/nand_spl/board/freescale/mpc8572ds/Makefile +++ b/nand_spl/board/freescale/mpc8572ds/Makefile @@ -30,7 +30,8 @@ PAD_TO := 0xfff01000 include $(TOPDIR)/config.mk LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds -LDFLAGS = -Bstatic -T $(LDSCRIPT) -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) $(PLATFORM_LDFLAGS) +LDFLAGS := -T $(LDSCRIPT) -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) $(LDFLAGS) \ + $(LDFLAGS_FINAL) AFLAGS += -DCONFIG_NAND_SPL CFLAGS += -DCONFIG_NAND_SPL |