blob: f87c9dc49be181f7f38eae492d362a09163b1d95 [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 Yamadac6d12622014-07-30 14:08:24 +09008PLATFORM_CPPFLAGS += -mstring -msoft-float
wdenk4f163802002-09-18 21:14:53 +00009
Masahiro Yamada51148792014-07-30 14:08:17 +090010cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
11is440:=$(shell grep CONFIG_440 $(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