blob: 63591d4a29040bcfb60b53977ce8a6954326aa02 [file] [log] [blame]
Dirk Behme0b02b182008-12-14 09:47:13 +01001#
2# (C) Copyright 2002
Detlev Zundel792a09e2009-05-13 10:54:10 +02003# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Dirk Behme0b02b182008-12-14 09:47:13 +01004#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Behme0b02b182008-12-14 09:47:13 +01006#
Dirk Behme0b02b182008-12-14 09:47:13 +01007
Tom Rini1551df32014-02-25 10:27:01 -05008# On supported platforms we set the bit which causes us to trap on unaligned
9# memory access. This is the opposite of what the compiler expects to be
10# the default so we must pass in -mno-unaligned-access so that it is aware
11# of our decision.
Albert ARIBAUDb823fd92012-10-09 09:28:15 +000012PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
Tom Rini1551df32014-02-25 10:27:01 -050013PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED)