blob: d546b220586b7419d1133d17e344f06bcf518d0a [file] [log] [blame]
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001#
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#
Alison Wang45370e12012-10-18 19:25:51 +00007# Copyright 2011-2012 Freescale Semiconductor, Inc.
8#
Wolfgang Denk1a459662013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
TsiChungLiew8ae158c2007-08-16 15:05:11 -050010#
11
12PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
Alison Wang45370e12012-10-18 19:25:51 +000013
14cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
15is5441x:=$(shell grep CONFIG_MCF5441x $(TOPDIR)/include/$(cfg))
16
17ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
18PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
19else
TsiChungLiewd9240a52007-11-07 17:51:00 -060020PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
Alison Wang45370e12012-10-18 19:25:51 +000021endif
TsiChung Liew8371dc22008-06-18 19:05:23 -050022
23ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
24ifneq (,$(findstring GOT,$(shell $(LD) --help)))
25PLATFORM_LDFLAGS += --got=single
26endif
27endif