blob: 102f069f9e9f5d9fc392dca3428256843b09ec9a [file] [log] [blame]
wdenk4f163802002-09-18 21:14:53 +00001#
Wolfgang Denkfa11dbe2010-11-21 16:34:05 +01002# (C) Copyright 2000-2010
wdenk4f163802002-09-18 21:14:53 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk4f163802002-09-18 21:14:53 +00006#
7
Masahiro Yamadade04d642013-11-26 10:53:58 +09008PLATFORM_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float
wdenk4f163802002-09-18 21:14:53 +00009
Masahiro Yamada5ee828c2014-03-11 11:05:21 +090010cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
Masahiro Yamada4379ac62014-03-11 11:05:19 +090011is440:=$(shell grep CONFIG_440 $(srctree)/include/$(cfg))
Grzegorz Bernackiefa35cf2007-06-15 11:19:28 +020012
13ifneq (,$(findstring CONFIG_440,$(is440)))
14PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
15else
16PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
17endif