]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/m68k/cpu/mcf52x2/config.mk
Add GPL-2.0+ SPDX-License-Identifier to source files
[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 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
11
12 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
13 is5208:=$(shell grep CONFIG_M5208 $(TOPDIR)/include/$(cfg))
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))
18 is5275:=$(shell grep CONFIG_M5275 $(TOPDIR)/include/$(cfg))
19 is5282:=$(shell grep CONFIG_M5282 $(TOPDIR)/include/$(cfg))
20
21 ifneq (,$(findstring CONFIG_M5208,$(is5208)))
22 PLATFORM_CPPFLAGS += -mcpu=5208
23 endif
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
36 ifneq (,$(findstring CONFIG_M5275,$(is5275)))
37 PLATFORM_CPPFLAGS += -mcpu=5275
38 endif
39 ifneq (,$(findstring CONFIG_M5282,$(is5282)))
40 PLATFORM_CPPFLAGS += -mcpu=5282
41 endif