blob: d0be46fd9c920900be05529b3bf84ec5d55ddec1 [file] [log] [blame]
wdenk4e5ca3e2003-12-08 01:34:36 +00001#
wdenkbf9e3b32004-02-12 00:47:09 +00002# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
3#
4# (C) Copyright 2000-2004
wdenk4e5ca3e2003-12-08 01:34:36 +00005# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
Wolfgang Denk1a459662013-07-08 09:37:19 +02007# SPDX-License-Identifier: GPL-2.0+
wdenk4e5ca3e2003-12-08 01:34:36 +00008#
9
wdenkbf9e3b32004-02-12 00:47:09 +000010PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
TsiChungLiewd9240a52007-11-07 17:51:00 -060011
12cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
TsiChung Liewbf9a5212009-06-12 11:29:00 +000013is5208:=$(shell grep CONFIG_M5208 $(TOPDIR)/include/$(cfg))
Shinya Kuribayashi208acd12008-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 Fettkef71d9d92008-02-04 15:38:20 -060018is5275:=$(shell grep CONFIG_M5275 $(TOPDIR)/include/$(cfg))
Shinya Kuribayashi208acd12008-02-23 17:07:57 +090019is5282:=$(shell grep CONFIG_M5282 $(TOPDIR)/include/$(cfg))
TsiChungLiewd9240a52007-11-07 17:51:00 -060020
TsiChung Liewbf9a5212009-06-12 11:29:00 +000021ifneq (,$(findstring CONFIG_M5208,$(is5208)))
22PLATFORM_CPPFLAGS += -mcpu=5208
23endif
TsiChungLiewd9240a52007-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 Fettkef71d9d92008-02-04 15:38:20 -060036ifneq (,$(findstring CONFIG_M5275,$(is5275)))
37PLATFORM_CPPFLAGS += -mcpu=5275
38endif
TsiChungLiewd9240a52007-11-07 17:51:00 -060039ifneq (,$(findstring CONFIG_M5282,$(is5282)))
40PLATFORM_CPPFLAGS += -mcpu=5282
41endif