blob: 917ff7edec671e14db351d69d91e8339eb7ef03f [file] [log] [blame]
wdenk7eaacc52003-08-29 22:00:43 +00001#
2# (C) Copyright 2002
Detlev Zundelf1b3f2b2009-05-13 10:54:10 +02003# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
wdenk7eaacc52003-08-29 22:00:43 +00004#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk7eaacc52003-08-29 22:00:43 +00006#
7
Kumar Gala438eded2009-09-01 11:24:45 -05008PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
Wolfgang Denkaba58092005-10-04 22:38:24 +02009
Remy Bohmer8dd3cc42008-12-04 22:25:57 +010010PLATFORM_CPPFLAGS += -march=armv5te
Wolfgang Denkaba58092005-10-04 22:38:24 +020011# =========================================================================
12#
13# Supply options according to compiler version
14#
15# =========================================================================
Wolfgang Denk9209ed52011-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 Ketola8d05a1b2012-04-18 22:55:35 +000018
19ifneq ($(CONFIG_IMX_CONFIG),)
Benoît Thébaudeaucba1dd82013-04-11 09:35:50 +000020ifdef CONFIG_SPL
21ifdef CONFIG_SPL_BUILD
22ALL-y += $(OBJTREE)/SPL
23endif
24else
Otavio Salvador50f4b5e2013-02-11 04:33:51 +000025ALL-y += $(obj)u-boot.imx
Benoît Thébaudeaucba1dd82013-04-11 09:35:50 +000026endif
Timo Ketola8d05a1b2012-04-18 22:55:35 +000027endif