blob: 917ff7edec671e14db351d69d91e8339eb7ef03f [file] [log] [blame]
wdenk6f213472003-08-29 22:00:43 +00001#
2# (C) Copyright 2002
Detlev Zundel792a09e2009-05-13 10:54:10 +02003# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
wdenk6f213472003-08-29 22:00:43 +00004#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk6f213472003-08-29 22:00:43 +00006#
7
Kumar Galad72871e2009-09-01 11:24:45 -05008PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
wdenk6f213472003-08-29 22:00:43 +00009
Remy Bohmer83ad1792008-12-04 22:25:57 +010010PLATFORM_CPPFLAGS += -march=armv5te
Wolfgang Denk1820d4c2005-10-04 22:38:24 +020011# =========================================================================
12#
13# Supply options according to compiler version
14#
15# =========================================================================
Wolfgang Denkcca4e4a2011-11-01 20:54:02 +000016PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
17PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
Timo Ketolabff969e2012-04-18 22:55:35 +000018
19ifneq ($(CONFIG_IMX_CONFIG),)
Benoît Thébaudeau8b7cd092013-04-11 09:35:50 +000020ifdef CONFIG_SPL
21ifdef CONFIG_SPL_BUILD
22ALL-y += $(OBJTREE)/SPL
23endif
24else
Otavio Salvador291b3dc2013-02-11 04:33:51 +000025ALL-y += $(obj)u-boot.imx
Benoît Thébaudeau8b7cd092013-04-11 09:35:50 +000026endif
Timo Ketolabff969e2012-04-18 22:55:35 +000027endif