xref: /openbmc/u-boot/arch/arm/cpu/armv7/config.mk (revision 9e414032)
1f56348afSSteve Sakoman#
2f56348afSSteve Sakoman# (C) Copyright 2002
3f56348afSSteve Sakoman# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4f56348afSSteve Sakoman#
51a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
6f56348afSSteve Sakoman#
7f56348afSSteve Sakoman
8f61faebaSAneesh V# If armv7-a is not supported by GCC fall-back to armv5, which is
9f61faebaSAneesh V# supported by more tool-chains
10f61faebaSAneesh VPF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
11f61faebaSAneesh VPLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
12f61faebaSAneesh V
13b823fd9bSAlbert ARIBAUD# SEE README.arm-unaligned-accesses
14b823fd9bSAlbert ARIBAUDPF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
15b823fd9bSAlbert ARIBAUDPLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
16b823fd9bSAlbert ARIBAUD
1738fcc71cSStefano Babicifneq ($(CONFIG_IMX_CONFIG),)
188b7cd098SBenoît Thébaudeauifdef CONFIG_SPL
198b7cd098SBenoît Thébaudeauifdef CONFIG_SPL_BUILD
208b7cd098SBenoît ThébaudeauALL-y	+= $(OBJTREE)/SPL
218b7cd098SBenoît Thébaudeauendif
228b7cd098SBenoît Thébaudeauelse
23*9e414032SMasahiro YamadaALL-y	+= u-boot.imx
2438fcc71cSStefano Babicendif
258b7cd098SBenoît Thébaudeauendif
26