blob: f66000b33124ca04c9ce81f838867cf6338c7709 [file] [log] [blame]
wdenkabf7a7c2003-12-08 01:34:36 +00001#
wdenke65527f2004-02-12 00:47:09 +00002# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
3#
4# (C) Copyright 2000-2004
wdenkabf7a7c2003-12-08 01:34:36 +00005# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
wdenkabf7a7c2003-12-08 01:34:36 +00008#
9
Masahiro Yamada60bb7342014-07-30 14:08:17 +090010cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
11is5208:=$(shell grep CONFIG_M5208 $(cfg))
12is5249:=$(shell grep CONFIG_M5249 $(cfg))
13is5253:=$(shell grep CONFIG_M5253 $(cfg))
14is5271:=$(shell grep CONFIG_M5271 $(cfg))
15is5272:=$(shell grep CONFIG_M5272 $(cfg))
16is5275:=$(shell grep CONFIG_M5275 $(cfg))
17is5282:=$(shell grep CONFIG_M5282 $(cfg))
TsiChungLiew6ad36902007-11-07 17:51:00 -060018
TsiChung Liewb354aef2009-06-12 11:29:00 +000019ifneq (,$(findstring CONFIG_M5208,$(is5208)))
20PLATFORM_CPPFLAGS += -mcpu=5208
21endif
TsiChungLiew6ad36902007-11-07 17:51:00 -060022ifneq (,$(findstring CONFIG_M5249,$(is5249)))
23PLATFORM_CPPFLAGS += -mcpu=5249
24endif
25ifneq (,$(findstring CONFIG_M5253,$(is5253)))
26PLATFORM_CPPFLAGS += -mcpu=5253
27endif
28ifneq (,$(findstring CONFIG_M5271,$(is5271)))
29PLATFORM_CPPFLAGS += -mcpu=5271
30endif
31ifneq (,$(findstring CONFIG_M5272,$(is5272)))
32PLATFORM_CPPFLAGS += -mcpu=5272
33endif
Matthew Fettke761e2e92008-02-04 15:38:20 -060034ifneq (,$(findstring CONFIG_M5275,$(is5275)))
35PLATFORM_CPPFLAGS += -mcpu=5275
36endif
TsiChungLiew6ad36902007-11-07 17:51:00 -060037ifneq (,$(findstring CONFIG_M5282,$(is5282)))
38PLATFORM_CPPFLAGS += -mcpu=5282
39endif