]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/m68k/cpu/mcf5445x/config.mk
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / m68k / cpu / mcf5445x / config.mk
CommitLineData
8ae158cd
TL
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#
45370e18
AW
7# Copyright 2011-2012 Freescale Semiconductor, Inc.
8#
1a459660 9# SPDX-License-Identifier: GPL-2.0+
8ae158cd
TL
10#
11
12PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
45370e18
AW
13
14cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
15is5441x:=$(shell grep CONFIG_MCF5441x $(TOPDIR)/include/$(cfg))
16
17ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
18PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
19else
d9240a5f 20PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
45370e18 21endif
8371dc20
TL
22
23ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
24ifneq (,$(findstring GOT,$(shell $(LD) --help)))
25PLATFORM_LDFLAGS += --got=single
26endif
27endif