blob: 5fd0d4d0e21a97fcfb7bbef6b0a2ca4530261692 [file] [log] [blame]
TsiChungLiewfc3ca3b62007-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 Wangfdc2fb12012-10-18 19:25:51 +00007# Copyright 2011-2012 Freescale Semiconductor, Inc.
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050010#
11
Masahiro Yamada80f03982014-03-11 11:05:21 +090012cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
Masahiro Yamadae7944942014-03-11 11:05:19 +090013is5441x:=$(shell grep CONFIG_MCF5441x $(srctree)/include/$(cfg))
Alison Wangfdc2fb12012-10-18 19:25:51 +000014
15ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
16PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
17else
TsiChungLiew6ad36902007-11-07 17:51:00 -060018PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
Alison Wangfdc2fb12012-10-18 19:25:51 +000019endif
TsiChung Liewdcc2eb332008-06-18 19:05:23 -050020
21ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
22ifneq (,$(findstring GOT,$(shell $(LD) --help)))
23PLATFORM_LDFLAGS += --got=single
24endif
25endif