blob: 13f8a9f57b600f312d9eceffdc91dc6e693da109 [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
Masahiro Yamada51148792014-07-30 14:08:17 +090012cfg=$(srctree)/include/configs/$(CONFIG_SYS_CONFIG_NAME:"%"=%).h
13is5441x:=$(shell grep CONFIG_MCF5441x $(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