wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 1 | # |
wdenk | e65527f | 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 | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | abf7a7c | 2003-12-08 01:34:36 +0000 | [diff] [blame] | 8 | # |
| 9 | |
Masahiro Yamada | 60bb734 | 2014-07-30 14:08:17 +0900 | [diff] [blame] | 10 | cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h |
| 11 | is5208:=$(shell grep CONFIG_M5208 $(cfg)) |
| 12 | is5249:=$(shell grep CONFIG_M5249 $(cfg)) |
| 13 | is5253:=$(shell grep CONFIG_M5253 $(cfg)) |
| 14 | is5271:=$(shell grep CONFIG_M5271 $(cfg)) |
| 15 | is5272:=$(shell grep CONFIG_M5272 $(cfg)) |
| 16 | is5275:=$(shell grep CONFIG_M5275 $(cfg)) |
| 17 | is5282:=$(shell grep CONFIG_M5282 $(cfg)) |
TsiChungLiew | 6ad3690 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 18 | |
TsiChung Liew | b354aef | 2009-06-12 11:29:00 +0000 | [diff] [blame] | 19 | ifneq (,$(findstring CONFIG_M5208,$(is5208))) |
| 20 | PLATFORM_CPPFLAGS += -mcpu=5208 |
| 21 | endif |
TsiChungLiew | 6ad3690 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 22 | ifneq (,$(findstring CONFIG_M5249,$(is5249))) |
| 23 | PLATFORM_CPPFLAGS += -mcpu=5249 |
| 24 | endif |
| 25 | ifneq (,$(findstring CONFIG_M5253,$(is5253))) |
| 26 | PLATFORM_CPPFLAGS += -mcpu=5253 |
| 27 | endif |
| 28 | ifneq (,$(findstring CONFIG_M5271,$(is5271))) |
| 29 | PLATFORM_CPPFLAGS += -mcpu=5271 |
| 30 | endif |
| 31 | ifneq (,$(findstring CONFIG_M5272,$(is5272))) |
| 32 | PLATFORM_CPPFLAGS += -mcpu=5272 |
| 33 | endif |
Matthew Fettke | 761e2e9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 34 | ifneq (,$(findstring CONFIG_M5275,$(is5275))) |
| 35 | PLATFORM_CPPFLAGS += -mcpu=5275 |
| 36 | endif |
TsiChungLiew | 6ad3690 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 37 | ifneq (,$(findstring CONFIG_M5282,$(is5282))) |
| 38 | PLATFORM_CPPFLAGS += -mcpu=5282 |
| 39 | endif |