4 # (C) Copyright 2000-2004
7 # SPDX-License-Identifier: GPL-2.0+
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))
19 ifneq (,$(findstring CONFIG_M5208,$(is5208)))
20 PLATFORM_CPPFLAGS += -mcpu=5208
22 ifneq (,$(findstring CONFIG_M5249,$(is5249)))
23 PLATFORM_CPPFLAGS += -mcpu=5249
25 ifneq (,$(findstring CONFIG_M5253,$(is5253)))
26 PLATFORM_CPPFLAGS += -mcpu=5253
28 ifneq (,$(findstring CONFIG_M5271,$(is5271)))
29 PLATFORM_CPPFLAGS += -mcpu=5271
31 ifneq (,$(findstring CONFIG_M5272,$(is5272)))
32 PLATFORM_CPPFLAGS += -mcpu=5272
34 ifneq (,$(findstring CONFIG_M5275,$(is5275)))
35 PLATFORM_CPPFLAGS += -mcpu=5275
37 ifneq (,$(findstring CONFIG_M5282,$(is5282)))
38 PLATFORM_CPPFLAGS += -mcpu=5282