2007-08-16 20:05:11 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2003 Josef Baumgartner <josef.baumgartner@telex.de>
|
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2004
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2012-10-18 19:25:51 +00:00
|
|
|
# Copyright 2011-2012 Freescale Semiconductor, Inc.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2007-08-16 20:05:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
|
2012-10-18 19:25:51 +00:00
|
|
|
|
|
|
|
cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
|
|
|
|
is5441x:=$(shell grep CONFIG_MCF5441x $(TOPDIR)/include/$(cfg))
|
|
|
|
|
|
|
|
ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
|
|
|
|
PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
|
|
|
|
else
|
2007-11-07 23:51:00 +00:00
|
|
|
PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
|
2012-10-18 19:25:51 +00:00
|
|
|
endif
|
2008-06-19 00:05:23 +00:00
|
|
|
|
|
|
|
ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
|
|
|
|
ifneq (,$(findstring GOT,$(shell $(LD) --help)))
|
|
|
|
PLATFORM_LDFLAGS += --got=single
|
|
|
|
endif
|
|
|
|
endif
|