2 # (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
4 # (C) Copyright 2000-2004
5 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 # SPDX-License-Identifier: GPL-2.0+
10 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
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))
16 ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x)))
17 PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC
19 ifneq (,$(findstring CONFIG_MCF532x,$(is532x)))
20 PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC