blob: 38b7c401f854936ac7dd06ee49d201da85185177 [file] [log] [blame]
Dirk Behme0b02b182008-12-14 09:47:13 +01001#
2# (C) Copyright 2002
Detlev Zundel792a09e2009-05-13 10:54:10 +02003# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Dirk Behme0b02b182008-12-14 09:47:13 +01004#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Behme0b02b182008-12-14 09:47:13 +01006#
Dirk Behme0b02b182008-12-14 09:47:13 +01007
Aneesh Vf61faeb2012-03-08 07:20:20 +00008# If armv7-a is not supported by GCC fall-back to armv5, which is
9# supported by more tool-chains
10PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
11PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
12
Albert ARIBAUDb823fd92012-10-09 09:28:15 +000013# SEE README.arm-unaligned-accesses
14PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
15PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
16
Stefano Babic38fcc712012-04-03 04:32:56 +000017ifneq ($(CONFIG_IMX_CONFIG),)
Benoît Thébaudeau8b7cd092013-04-11 09:35:50 +000018ifdef CONFIG_SPL
19ifdef CONFIG_SPL_BUILD
20ALL-y += $(OBJTREE)/SPL
21endif
22else
Otavio Salvador291b3dc2013-02-11 04:33:51 +000023ALL-y += $(obj)u-boot.imx
Stefano Babic38fcc712012-04-03 04:32:56 +000024endif
Benoît Thébaudeau8b7cd092013-04-11 09:35:50 +000025endif