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