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