blob: 2f310a5d7742268e96a2d75ad0d1bac679b990d5 [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
Alison Wang45370e12012-10-18 19:25:51 +000012cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
Masahiro Yamada4379ac62014-03-11 11:05:19 +090013is5441x:=$(shell grep CONFIG_MCF5441x $(srctree)/include/$(cfg))
Alison Wang45370e12012-10-18 19:25:51 +000014
15ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
16PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
17else
TsiChungLiewd9240a52007-11-07 17:51:00 -060018PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
Alison Wang45370e12012-10-18 19:25:51 +000019endif
TsiChung Liew8371dc22008-06-18 19:05:23 -050020
21ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
22ifneq (,$(findstring GOT,$(shell $(LD) --help)))
23PLATFORM_LDFLAGS += --got=single
24endif
25endif