
Dear Haiying.Wang@freescale.com,
In message 1298410685-21335-1-git-send-email-Haiying.Wang@freescale.com you wrote:
From: Haiying Wang Haiying.Wang@freescale.com
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
v3: remove LDFLAGS from LDFLAGS_FINAL since it is already in LDFLAGS_u-boot, and add LDFLAGS to each nand_spl board's LDFLAGS arch/blackfin/config.mk | 2 +- arch/i386/config.mk | 2 +- arch/nios2/config.mk | 2 +- arch/powerpc/config.mk | 2 +- arch/sh/config.mk | 2 +- config.mk | 3 ++- nand_spl/board/amcc/acadia/Makefile | 3 ++- nand_spl/board/amcc/bamboo/Makefile | 3 ++- nand_spl/board/amcc/canyonlands/Makefile | 3 ++- nand_spl/board/amcc/kilauea/Makefile | 3 ++- nand_spl/board/amcc/sequoia/Makefile | 3 ++- nand_spl/board/davinci/da8xxevm/Makefile | 3 ++- nand_spl/board/freescale/mpc8313erdb/Makefile | 4 ++-- nand_spl/board/freescale/mpc8315erdb/Makefile | 4 ++-- nand_spl/board/freescale/mpc8536ds/Makefile | 3 ++- nand_spl/board/freescale/mpc8569mds/Makefile | 3 ++- nand_spl/board/freescale/mpc8572ds/Makefile | 3 ++- nand_spl/board/freescale/mx31pdk/Makefile | 3 ++- nand_spl/board/freescale/p1_p2_rdb/Makefile | 3 ++- nand_spl/board/karo/tx25/Makefile | 3 ++- nand_spl/board/samsung/smdk6400/Makefile | 3 ++- nand_spl/board/sheldon/simpc8313/Makefile | 4 ++-- 22 files changed, 39 insertions(+), 25 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk