blob: 1ef606136576c708f72795cd72788710315bc213 [file] [log] [blame]
wdenkf8062712005-01-09 23:16:25 +00001#
2# (C) Copyright 2002
Detlev Zundelf1b3f2b2009-05-13 10:54:10 +02003# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
wdenkf8062712005-01-09 23:16:25 +00004#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkf8062712005-01-09 23:16:25 +00006#
Kumar Gala438eded2009-09-01 11:24:45 -05007PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
wdenkf8062712005-01-09 23:16:25 +00008
wdenkcb99da52005-01-12 00:15:14 +00009# Make ARMv5 to allow more compilers to work, even though its v6.
Wolfgang Denkaba58092005-10-04 22:38:24 +020010PLATFORM_CPPFLAGS += -march=armv5
11# =========================================================================
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)
Benoît Thébaudeaucba1dd82013-04-11 09:35:50 +000018
19ifneq ($(CONFIG_IMX_CONFIG),)
20ifdef CONFIG_SPL
Stefano Babicc24391a2012-10-17 06:04:30 +000021ifdef CONFIG_SPL_BUILD
22ALL-y += $(OBJTREE)/SPL
23endif
Benoît Thébaudeaucba1dd82013-04-11 09:35:50 +000024else
25ALL-y += $(obj)u-boot.imx
26endif
27endif