2002-09-18 21:14:53 +00:00
|
|
|
#
|
2010-11-21 15:34:05 +00:00
|
|
|
# (C) Copyright 2000-2010
|
2002-09-18 21:14:53 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-09-18 21:14:53 +00:00
|
|
|
#
|
|
|
|
|
2013-11-26 01:53:58 +00:00
|
|
|
PLATFORM_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float
|
2002-09-18 21:14:53 +00:00
|
|
|
|
2014-03-11 02:05:21 +00:00
|
|
|
cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
|
2014-03-11 02:05:19 +00:00
|
|
|
is440:=$(shell grep CONFIG_440 $(srctree)/include/$(cfg))
|
2007-06-15 09:19:28 +00:00
|
|
|
|
|
|
|
ifneq (,$(findstring CONFIG_440,$(is440)))
|
|
|
|
PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
|
|
|
|
else
|
|
|
|
PLATFORM_CPPFLAGS += -Wa,-m405 -mcpu=405
|
|
|
|
endif
|