]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/config.mk
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / config.mk
1 #
2 # (C) Copyright 2002
3 # Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7 PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
8
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)
13
14 # =========================================================================
15 #
16 # Supply options according to compiler version
17 #
18 # =========================================================================
19 PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
20 PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
21
22 # SEE README.arm-unaligned-accesses
23 PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
24 PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
25
26 ifneq ($(CONFIG_IMX_CONFIG),)
27 ifdef CONFIG_SPL
28 ifdef CONFIG_SPL_BUILD
29 ALL-y   += $(OBJTREE)/SPL
30 endif
31 else
32 ALL-y   += $(obj)u-boot.imx
33 endif
34 endif