blob: d0be46fd9c920900be05529b3bf84ec5d55ddec1 [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
wdenke65527f2004-02-12 00:47:09 +000010PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
TsiChungLiew6ad36902007-11-07 17:51:00 -060011
12cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
TsiChung Liewb354aef2009-06-12 11:29:00 +000013is5208:=$(shell grep CONFIG_M5208 $(TOPDIR)/include/$(cfg))
Shinya Kuribayashie97cb892008-02-23 17:07:57 +090014is5249:=$(shell grep CONFIG_M5249 $(TOPDIR)/include/$(cfg))
15is5253:=$(shell grep CONFIG_M5253 $(TOPDIR)/include/$(cfg))
16is5271:=$(shell grep CONFIG_M5271 $(TOPDIR)/include/$(cfg))
17is5272:=$(shell grep CONFIG_M5272 $(TOPDIR)/include/$(cfg))
Matthew Fettke761e2e92008-02-04 15:38:20 -060018is5275:=$(shell grep CONFIG_M5275 $(TOPDIR)/include/$(cfg))
Shinya Kuribayashie97cb892008-02-23 17:07:57 +090019is5282:=$(shell grep CONFIG_M5282 $(TOPDIR)/include/$(cfg))
TsiChungLiew6ad36902007-11-07 17:51:00 -060020
TsiChung Liewb354aef2009-06-12 11:29:00 +000021ifneq (,$(findstring CONFIG_M5208,$(is5208)))
22PLATFORM_CPPFLAGS += -mcpu=5208
23endif
TsiChungLiew6ad36902007-11-07 17:51:00 -060024ifneq (,$(findstring CONFIG_M5249,$(is5249)))
25PLATFORM_CPPFLAGS += -mcpu=5249
26endif
27ifneq (,$(findstring CONFIG_M5253,$(is5253)))
28PLATFORM_CPPFLAGS += -mcpu=5253
29endif
30ifneq (,$(findstring CONFIG_M5271,$(is5271)))
31PLATFORM_CPPFLAGS += -mcpu=5271
32endif
33ifneq (,$(findstring CONFIG_M5272,$(is5272)))
34PLATFORM_CPPFLAGS += -mcpu=5272
35endif
Matthew Fettke761e2e92008-02-04 15:38:20 -060036ifneq (,$(findstring CONFIG_M5275,$(is5275)))
37PLATFORM_CPPFLAGS += -mcpu=5275
38endif
TsiChungLiew6ad36902007-11-07 17:51:00 -060039ifneq (,$(findstring CONFIG_M5282,$(is5282)))
40PLATFORM_CPPFLAGS += -mcpu=5282
41endif