TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 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 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChung Liew | 8e585f0 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | PLATFORM_RELFLAGS += -ffixed-d7 -msep-data |
TsiChung Liew | f9d877a | 2010-03-10 17:32:13 -0600 | [diff] [blame] | 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 | |
TsiChung Liew | f9d877a | 2010-03-10 17:32:13 -0600 | [diff] [blame] | 16 | ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x))) |
| 17 | PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC |
| 18 | endif |
| 19 | ifneq (,$(findstring CONFIG_MCF532x,$(is532x))) |
TsiChungLiew | d9240a5 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 20 | PLATFORM_CPPFLAGS += -mcpu=5329 -fPIC |
TsiChung Liew | f9d877a | 2010-03-10 17:32:13 -0600 | [diff] [blame] | 21 | endif |