blob: 68036d6fbdafe3edd4a40b12d55099a960ef7180 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Dirk Behme7d75a102008-12-14 09:47:13 +01002#
3# (C) Copyright 2002
Detlev Zundelf1b3f2b2009-05-13 10:54:10 +02004# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Dirk Behme7d75a102008-12-14 09:47:13 +01005
Tom Rini958a8f82014-02-25 10:27:01 -05006# On supported platforms we set the bit which causes us to trap on unaligned
7# memory access. This is the opposite of what the compiler expects to be
8# the default so we must pass in -mno-unaligned-access so that it is aware
9# of our decision.
Albert ARIBAUDd6d4ec82012-10-09 09:28:15 +000010PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
Tom Rini958a8f82014-02-25 10:27:01 -050011PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED)