1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# (C) Copyright 2002 3*4882a593Smuzhiyun# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0+ 6*4882a593Smuzhiyun# 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun# On supported platforms we set the bit which causes us to trap on unaligned 9*4882a593Smuzhiyun# memory access. This is the opposite of what the compiler expects to be 10*4882a593Smuzhiyun# the default so we must pass in -mno-unaligned-access so that it is aware 11*4882a593Smuzhiyun# of our decision. 12*4882a593SmuzhiyunPF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) 13*4882a593SmuzhiyunPLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED) 14*4882a593Smuzhiyun 15*4882a593Smuzhiyunifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),) 16*4882a593SmuzhiyunPLATFORM_CPPFLAGS += -mabi=aapcs-linux -funwind-tables 17*4882a593Smuzhiyunendif 18