TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 1 | # |
| 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 Wang | 45370e1 | 2012-10-18 19:25:51 +0000 | [diff] [blame] | 7 | # Copyright 2011-2012 Freescale Semiconductor, Inc. |
| 8 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 9 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChungLiew | 8ae158c | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 10 | # |
| 11 | |
| 12 | PLATFORM_RELFLAGS += -ffixed-d7 -msep-data |
Alison Wang | 45370e1 | 2012-10-18 19:25:51 +0000 | [diff] [blame] | 13 | |
| 14 | cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/') |
| 15 | is5441x:=$(shell grep CONFIG_MCF5441x $(TOPDIR)/include/$(cfg)) |
| 16 | |
| 17 | ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x))) |
| 18 | PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC |
| 19 | else |
TsiChungLiew | d9240a5 | 2007-11-07 17:51:00 -0600 | [diff] [blame] | 20 | PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC |
Alison Wang | 45370e1 | 2012-10-18 19:25:51 +0000 | [diff] [blame] | 21 | endif |
TsiChung Liew | 8371dc2 | 2008-06-18 19:05:23 -0500 | [diff] [blame] | 22 | |
| 23 | ifneq (,$(findstring -linux-,$(shell $(CC) --version))) |
| 24 | ifneq (,$(findstring GOT,$(shell $(LD) --help))) |
| 25 | PLATFORM_LDFLAGS += --got=single |
| 26 | endif |
| 27 | endif |