diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2007-07-06 19:39:48 -0500 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2007-07-06 19:39:48 -0500 |
commit | 0459e7d3a0a273064b738aa2e06fd7dcd35eec58 (patch) | |
tree | 83b8a3044400cb1463e91410cf0f3732dedd7fb4 /cpu/ppc4xx/config.mk | |
parent | 30d5c04c93084fe0b144646b77eb873957872a8d (diff) | |
parent | e80955f07de03fef0196353e77534b2300193c1c (diff) | |
download | u-boot-imx-0459e7d3a0a273064b738aa2e06fd7dcd35eec58.zip u-boot-imx-0459e7d3a0a273064b738aa2e06fd7dcd35eec58.tar.gz u-boot-imx-0459e7d3a0a273064b738aa2e06fd7dcd35eec58.tar.bz2 |
Merge git://www.denx.de/git/u-boot
Diffstat (limited to 'cpu/ppc4xx/config.mk')
-rw-r--r-- | cpu/ppc4xx/config.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/cpu/ppc4xx/config.mk b/cpu/ppc4xx/config.mk index 119e061..4fd5108 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 $(OBJTREE)/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 |