blob: b4d396de8414ca8b2cd547d20d1c0f9a19aa8fba [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#
wdenkf8062712005-01-09 23:16:25 +00007
wdenkcb99da52005-01-12 00:15:14 +00008# Make ARMv5 to allow more compilers to work, even though its v6.
Wolfgang Denkaba58092005-10-04 22:38:24 +02009PLATFORM_CPPFLAGS += -march=armv5
10# =========================================================================
11#
12# Supply options according to compiler version
13#
14# =========================================================================
Wolfgang Denk9209ed52011-11-01 20:54:02 +000015PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
16PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
Benoît Thébaudeaucba1dd82013-04-11 09:35:50 +000017
18ifneq ($(CONFIG_IMX_CONFIG),)
19ifdef CONFIG_SPL
Stefano Babicc24391a2012-10-17 06:04:30 +000020ifdef CONFIG_SPL_BUILD
21ALL-y += $(OBJTREE)/SPL
22endif
Benoît Thébaudeaucba1dd82013-04-11 09:35:50 +000023else
24ALL-y += $(obj)u-boot.imx
25endif
26endif