xref: /rk3399_rockchip-uboot/arch/arm/cpu/armv7/config.mk (revision 6aa65bb1ee0951865e27da81dde1de76c6d4687e)
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
81551df35STom Rini# On supported platforms we set the bit which causes us to trap on unaligned
91551df35STom Rini# memory access.  This is the opposite of what the compiler expects to be
101551df35STom Rini# the default so we must pass in -mno-unaligned-access so that it is aware
111551df35STom Rini# of our decision.
12b823fd9bSAlbert ARIBAUDPF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
131551df35STom RiniPLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED)
14*6aa65bb1SJoseph Chen
15*6aa65bb1SJoseph Chenifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
16*6aa65bb1SJoseph ChenPLATFORM_CPPFLAGS += -mabi=aapcs-linux -funwind-tables
17*6aa65bb1SJoseph Chenendif
18