]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/m68k/cpu/mcf52x2/config.mk
ebf75e6f159981ba66781755b2eff3cdecd29952
[karo-tx-uboot.git] / arch / m68k / cpu / mcf52x2 / config.mk
1 #
2 # (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
3 #
4 # (C) Copyright 2000-2004
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 #
7 # SPDX-License-Identifier:      GPL-2.0+
8 #
9
10 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
11 is5208:=$(shell grep CONFIG_M5208 $(srctree)/include/$(cfg))
12 is5249:=$(shell grep CONFIG_M5249 $(srctree)/include/$(cfg))
13 is5253:=$(shell grep CONFIG_M5253 $(srctree)/include/$(cfg))
14 is5271:=$(shell grep CONFIG_M5271 $(srctree)/include/$(cfg))
15 is5272:=$(shell grep CONFIG_M5272 $(srctree)/include/$(cfg))
16 is5275:=$(shell grep CONFIG_M5275 $(srctree)/include/$(cfg))
17 is5282:=$(shell grep CONFIG_M5282 $(srctree)/include/$(cfg))
18
19 ifneq (,$(findstring CONFIG_M5208,$(is5208)))
20 PLATFORM_CPPFLAGS += -mcpu=5208
21 endif
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
34 ifneq (,$(findstring CONFIG_M5275,$(is5275)))
35 PLATFORM_CPPFLAGS += -mcpu=5275
36 endif
37 ifneq (,$(findstring CONFIG_M5282,$(is5282)))
38 PLATFORM_CPPFLAGS += -mcpu=5282
39 endif