3 # Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
5 # SPDX-License-Identifier: GPL-2.0+
7 PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
9 # If armv7-a is not supported by GCC fall-back to armv5, which is
10 # supported by more tool-chains
11 PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
12 PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
14 # =========================================================================
16 # Supply options according to compiler version
18 # =========================================================================
19 PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
20 PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
22 # SEE README.arm-unaligned-accesses
23 PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
24 PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
26 ifneq ($(CONFIG_IMX_CONFIG),)
28 ifdef CONFIG_SPL_BUILD
29 ALL-y += $(OBJTREE)/SPL
32 ALL-y += $(obj)u-boot.imx