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 | c6d1262 | 2014-07-30 14:08:24 +0900 | [diff] [blame] | 8 | PLATFORM_CPPFLAGS += -mstring -msoft-float |
wdenk | 4f16380 | 2002-09-18 21:14:53 +0000 | [diff] [blame] | 9 | |
Masahiro Yamada | 5114879 | 2014-07-30 14:08:17 +0900 | [diff] [blame] | 10 | cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h |
| 11 | is440:=$(shell grep CONFIG_440 $(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 |