summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/config.mk
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-06-15 11:20:13 +0200
committerStefan Roese <sr@denx.de>2007-06-15 11:20:13 +0200
commitb7c3e93105c4955177cb2ab179ed2bf83ea02adc (patch)
tree9e2e1dd0debb051d79ba8458d9f3c48a8de8cdf5 /cpu/ppc4xx/config.mk
parentb765ffb773f5a3cd5aa94ec76b6a05276b8cd5b2 (diff)
parentefa35cf12d914d4caba942acd5a6c45f217de302 (diff)
Merge with /home/stefan/git/u-boot/denx-440-exceptions
Diffstat (limited to 'cpu/ppc4xx/config.mk')
-rw-r--r--cpu/ppc4xx/config.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpu/ppc4xx/config.mk b/cpu/ppc4xx/config.mk
index 119e061b89..e7fc3f636e 100644
--- a/cpu/ppc4xx/config.mk
+++ b/cpu/ppc4xx/config.mk
@@ -22,5 +22,13 @@
#
PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
+PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -msoft-float
-PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -ffixed-r29 -mstring -Wa,-m405 -mcpu=405 -msoft-float
+cfg=$(shell grep configs $(TOPDIR)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
+is440=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
+
+ifneq (,$(findstring CONFIG_440,$(is440)))
+PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
+else
+PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
+endif