xref: /openbmc/u-boot/arch/arm/cpu/armv7/config.mk (revision 03efcb05)
1#
2# (C) Copyright 2002
3# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7PLATFORM_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
11PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
12PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
13
14# =========================================================================
15#
16# Supply options according to compiler version
17#
18# =========================================================================
19PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
20PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
21
22# SEE README.arm-unaligned-accesses
23PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
24PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
25
26ifneq ($(CONFIG_IMX_CONFIG),)
27ifdef CONFIG_SPL
28ifdef CONFIG_SPL_BUILD
29ALL-y	+= $(OBJTREE)/SPL
30endif
31else
32ALL-y	+= $(obj)u-boot.imx
33endif
34endif
35