diff options
author | TsiChung Liew <tsicliew@gmail.com> | 2010-03-10 17:32:13 -0600 |
---|---|---|
committer | TsiChung Liew <tsicliew@gmail.com> | 2010-03-24 11:09:18 -0500 |
commit | f9d877a6479878ca96688671f37d87b620c3e77c (patch) | |
tree | 11da5bdd43ad750a90cb104f92b10d202c115c09 /cpu | |
parent | 0e8a75550695aba9d8cfe9c7f7713da42c1f3e89 (diff) | |
download | u-boot-f9d877a6479878ca96688671f37d87b620c3e77c.tar.gz u-boot-f9d877a6479878ca96688671f37d87b620c3e77c.tar.xz u-boot-f9d877a6479878ca96688671f37d87b620c3e77c.zip |
ColdFire: Add CPU compile flag for mcf5301x and mcf532x
Add CPU compile flag -mcpu=53015 in cpu/config.mk
Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mcf532x/config.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpu/mcf532x/config.mk b/cpu/mcf532x/config.mk index 0cb90ac4e2..b783444ae8 100644 --- a/cpu/mcf532x/config.mk +++ b/cpu/mcf532x/config.mk @@ -24,8 +24,20 @@ # PLATFORM_RELFLAGS += -ffixed-d7 -msep-data + +cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/') +is5301x:=$(shell grep CONFIG_MCF5301x $(TOPDIR)/include/$(cfg)) +is532x:=$(shell grep CONFIG_MCF532x $(TOPDIR)/include/$(cfg)) + ifneq ($(findstring 4.1,$(shell $(CC) --version)),4.1) + +ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x))) +PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC +endif +ifneq (,$(findstring CONFIG_MCF532x,$(is532x))) PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC +endif + else PLATFORM_CPPFLAGS += -m5307 -fPIC endif |