wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | # |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 2 | # (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de> |
| 3 | # |
| 4 | # (C) Copyright 2000-2004 |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 4e5ca3e | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 8 | # |
| 9 | |
wdenk | bf9e3b3 | 2004-02-12 00:47:09 +0000 | [diff] [blame] | 10 | PLATFORM_RELFLAGS += -ffixed-d7 -msep-data |
TsiChungLiew | d9240a5 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 11 | |
| 12 | cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/') |
TsiChung Liew | bf9a521 | 2009-06-12 11:29:00 +0000 | [diff] [blame] | 13 | is5208:=$(shell grep CONFIG_M5208 $(TOPDIR)/include/$(cfg)) |
Shinya Kuribayashi | 208acd1 | 2008-02-23 17:07:57 +0900 | [diff] [blame] | 14 | is5249:=$(shell grep CONFIG_M5249 $(TOPDIR)/include/$(cfg)) |
| 15 | is5253:=$(shell grep CONFIG_M5253 $(TOPDIR)/include/$(cfg)) |
| 16 | is5271:=$(shell grep CONFIG_M5271 $(TOPDIR)/include/$(cfg)) |
| 17 | is5272:=$(shell grep CONFIG_M5272 $(TOPDIR)/include/$(cfg)) |
Matthew Fettke | f71d9d9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 18 | is5275:=$(shell grep CONFIG_M5275 $(TOPDIR)/include/$(cfg)) |
Shinya Kuribayashi | 208acd1 | 2008-02-23 17:07:57 +0900 | [diff] [blame] | 19 | is5282:=$(shell grep CONFIG_M5282 $(TOPDIR)/include/$(cfg)) |
TsiChungLiew | d9240a5 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 20 | |
TsiChung Liew | bf9a521 | 2009-06-12 11:29:00 +0000 | [diff] [blame] | 21 | ifneq (,$(findstring CONFIG_M5208,$(is5208))) |
| 22 | PLATFORM_CPPFLAGS += -mcpu=5208 |
| 23 | endif |
TsiChungLiew | d9240a5 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 24 | ifneq (,$(findstring CONFIG_M5249,$(is5249))) |
| 25 | PLATFORM_CPPFLAGS += -mcpu=5249 |
| 26 | endif |
| 27 | ifneq (,$(findstring CONFIG_M5253,$(is5253))) |
| 28 | PLATFORM_CPPFLAGS += -mcpu=5253 |
| 29 | endif |
| 30 | ifneq (,$(findstring CONFIG_M5271,$(is5271))) |
| 31 | PLATFORM_CPPFLAGS += -mcpu=5271 |
| 32 | endif |
| 33 | ifneq (,$(findstring CONFIG_M5272,$(is5272))) |
| 34 | PLATFORM_CPPFLAGS += -mcpu=5272 |
| 35 | endif |
Matthew Fettke | f71d9d9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 36 | ifneq (,$(findstring CONFIG_M5275,$(is5275))) |
| 37 | PLATFORM_CPPFLAGS += -mcpu=5275 |
| 38 | endif |
TsiChungLiew | d9240a5 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 39 | ifneq (,$(findstring CONFIG_M5282,$(is5282))) |
| 40 | PLATFORM_CPPFLAGS += -mcpu=5282 |
| 41 | endif |