wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 1 | # |
Wolfgang Denk | fa11dbe | 2010-11-21 16:34:05 +0100 | [diff] [blame] | 2 | # (C) Copyright 2000-2010 |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | de04d64 | 2013-11-26 10:53:58 +0900 | [diff] [blame] | 8 | PLATFORM_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 9 | |
Masahiro Yamada | 5ee828c | 2014-03-11 11:05:21 +0900 | [diff] [blame] | 10 | cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/') |
Masahiro Yamada | 4379ac6 | 2014-03-11 11:05:19 +0900 | [diff] [blame] | 11 | is440:=$(shell grep CONFIG_440 $(srctree)/include/$(cfg)) |
Grzegorz Bernacki | efa35cf | 2007-06-15 11:19:28 +0200 | [diff] [blame] | 12 | |
| 13 | ifneq (,$(findstring CONFIG_440,$(is440))) |
| 14 | PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440 |
| 15 | else |
| 16 | PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405 |
| 17 | endif |