1*83d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+ 2f56348afSSteve Sakoman# 3f56348afSSteve Sakoman# (C) Copyright 2002 4f56348afSSteve Sakoman# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> 5f56348afSSteve Sakoman 61551df35STom Rini# On supported platforms we set the bit which causes us to trap on unaligned 71551df35STom Rini# memory access. This is the opposite of what the compiler expects to be 81551df35STom Rini# the default so we must pass in -mno-unaligned-access so that it is aware 91551df35STom Rini# of our decision. 10b823fd9bSAlbert ARIBAUDPF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) 111551df35STom RiniPLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED) 12