]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/m68k/cpu/mcf532x/config.mk
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / m68k / cpu / mcf532x / 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 is5301x:=$(shell grep CONFIG_MCF5301x $(TOPDIR)/include/$(cfg))
14 is532x:=$(shell grep CONFIG_MCF532x $(TOPDIR)/include/$(cfg))
15
16 ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x)))
17 PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC
18 endif
19 ifneq (,$(findstring CONFIG_MCF532x,$(is532x)))
20 PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC
21 endif