]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - blackfin_config.mk
Enable multi chip support in the NAND layer
[people/ms/u-boot.git] / blackfin_config.mk
index 7bde449263497c0ffc378e0e7e76c89794e674c6..f3fcd7a0749dcb99c7fe00aa11f6af8ee16795d7 100644 (file)
 CONFIG_BFIN_CPU := $(strip $(subst ",,$(CONFIG_BFIN_CPU)))
 CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
 
-PLATFORM_RELFLAGS += -ffixed-P5 -fomit-frame-pointer
+PLATFORM_RELFLAGS += -ffixed-P5 -fomit-frame-pointer -mno-fdpic
 PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
 
+LDFLAGS += --gc-sections
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
+
 ifneq (,$(CONFIG_BFIN_CPU))
 PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU)
 endif