summaryrefslogtreecommitdiff
path: root/arch/blackfin/config.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-09 17:57:47 -0400
committerMike Frysinger <vapier@gentoo.org>2010-10-02 16:00:38 -0400
commit821ad16fa9900c9b48e9af678b4a5d7808a58f7c (patch)
tree522cfcdc596a042b9ee2593dfa803f73cb0c1561 /arch/blackfin/config.mk
parent543ef365865abed36b120ae5b05fbb64d092877f (diff)
downloadu-boot-imx-821ad16fa9900c9b48e9af678b4a5d7808a58f7c.zip
u-boot-imx-821ad16fa9900c9b48e9af678b4a5d7808a58f7c.tar.gz
u-boot-imx-821ad16fa9900c9b48e9af678b4a5d7808a58f7c.tar.bz2
Blackfin: move CONFIG_BFIN_CPU to board config.mk
The CONFIG_BFIN_CPU option is largely used in the build system, so move it out of the board config.h and into the board config.mk. It'd be nice to keep everything in the config.h, but the patch to extract that value early was rejected. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/config.mk')
-rw-r--r--arch/blackfin/config.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/blackfin/config.mk b/arch/blackfin/config.mk
index 137834e..e531edb 100644
--- a/arch/blackfin/config.mk
+++ b/arch/blackfin/config.mk
@@ -25,7 +25,6 @@ CROSS_COMPILE ?= bfin-uclinux-
STANDALONE_LOAD_ADDR = 0x1000 -m elf32bfin
-CONFIG_BFIN_CPU := $(strip $(subst ",,$(CONFIG_BFIN_CPU)))
CONFIG_BFIN_BOOT_MODE := $(strip $(subst ",,$(CONFIG_BFIN_BOOT_MODE)))
CONFIG_ENV_OFFSET := $(strip $(subst ",,$(CONFIG_ENV_OFFSET)))
CONFIG_ENV_SIZE := $(strip $(subst ",,$(CONFIG_ENV_SIZE)))
@@ -36,9 +35,8 @@ PLATFORM_CPPFLAGS += -DCONFIG_BLACKFIN
LDFLAGS += --gc-sections -m elf32bfin
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
-ifneq (,$(CONFIG_BFIN_CPU))
+PLATFORM_CPPFLAGS += -DBFIN_CPU='"$(CONFIG_BFIN_CPU)"'
PLATFORM_RELFLAGS += -mcpu=$(CONFIG_BFIN_CPU)
-endif
ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
ALL += $(obj)u-boot.ldr