]> git.sur5r.net Git - u-boot/commit
Introduce a new linker flag LDFLAGS_FINAL
authorHaiying Wang <Haiying.Wang@freescale.com>
Tue, 22 Feb 2011 21:38:05 +0000 (16:38 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 22 Mar 2011 22:32:06 +0000 (23:32 +0100)
commit6dc1eceb9c5f42216f1ba0e0ef538015b0aa10bc
tree68b8f0f3a430eefbdef343dd62d8c89eebcadb98
parentc81c1222427f268d29ba999c82e2477c428e7bab
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>
22 files changed:
arch/blackfin/config.mk
arch/i386/config.mk
arch/nios2/config.mk
arch/powerpc/config.mk
arch/sh/config.mk
config.mk
nand_spl/board/amcc/acadia/Makefile
nand_spl/board/amcc/bamboo/Makefile
nand_spl/board/amcc/canyonlands/Makefile
nand_spl/board/amcc/kilauea/Makefile
nand_spl/board/amcc/sequoia/Makefile
nand_spl/board/davinci/da8xxevm/Makefile
nand_spl/board/freescale/mpc8313erdb/Makefile
nand_spl/board/freescale/mpc8315erdb/Makefile
nand_spl/board/freescale/mpc8536ds/Makefile
nand_spl/board/freescale/mpc8569mds/Makefile
nand_spl/board/freescale/mpc8572ds/Makefile
nand_spl/board/freescale/mx31pdk/Makefile
nand_spl/board/freescale/p1_p2_rdb/Makefile
nand_spl/board/karo/tx25/Makefile
nand_spl/board/samsung/smdk6400/Makefile
nand_spl/board/sheldon/simpc8313/Makefile