xref: /openbmc/u-boot/arch/arm/cpu/armv7/config.mk (revision 1551df35)
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
13*1551df35STom Rini# On supported platforms we set the bit which causes us to trap on unaligned
14*1551df35STom Rini# memory access.  This is the opposite of what the compiler expects to be
15*1551df35STom Rini# the default so we must pass in -mno-unaligned-access so that it is aware
16*1551df35STom Rini# of our decision.
17b823fd9bSAlbert ARIBAUDPF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
18*1551df35STom RiniPLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED)
19b823fd9bSAlbert ARIBAUD
2038fcc71cSStefano Babicifneq ($(CONFIG_IMX_CONFIG),)
218b7cd098SBenoît Thébaudeauifdef CONFIG_SPL
228b7cd098SBenoît Thébaudeauifdef CONFIG_SPL_BUILD
238b7cd098SBenoît ThébaudeauALL-y	+= $(OBJTREE)/SPL
248b7cd098SBenoît Thébaudeauendif
258b7cd098SBenoît Thébaudeauelse
269e414032SMasahiro YamadaALL-y	+= u-boot.imx
2738fcc71cSStefano Babicendif
288b7cd098SBenoît Thébaudeauendif
29