]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/blackfin/config.mk
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
[karo-tx-uboot.git] / arch / blackfin / config.mk
index ab117ca5ad5227314b4619dc310d7d47413a5847..0cba294e734d6082fa5676734a273ee1f45c8fcb 100644 (file)
@@ -30,7 +30,8 @@ CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
 PLATFORM_RELFLAGS += -ffixed-P3 -fomit-frame-pointer -mno-fdpic
 PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
 
-LDFLAGS += --gc-sections -m elf32bfin
+LDFLAGS_u-boot += --gc-sections
+LDFLAGS += -m elf32bfin
 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
 
 PLATFORM_CPPFLAGS += -DBFIN_CPU='"$(CONFIG_BFIN_CPU)"'