blob: 6c82c3b537adbbd640ccbb74241bae63f9fd254b [file] [log] [blame]
Dirk Behme7d75a102008-12-14 09:47:13 +01001#
2# (C) Copyright 2002
Detlev Zundelf1b3f2b2009-05-13 10:54:10 +02003# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
Dirk Behme7d75a102008-12-14 09:47:13 +01004#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Dirk Behme7d75a102008-12-14 09:47:13 +01006#
Dirk Behme7d75a102008-12-14 09:47:13 +01007
Aneesh V5ccb4242012-03-08 07:20:20 +00008# If armv7-a is not supported by GCC fall-back to armv5, which is
9# supported by more tool-chains
10PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
11PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
12
Tom Rini958a8f82014-02-25 10:27:01 -050013# On supported platforms we set the bit which causes us to trap on unaligned
14# memory access. This is the opposite of what the compiler expects to be
15# the default so we must pass in -mno-unaligned-access so that it is aware
16# of our decision.
Albert ARIBAUDd6d4ec82012-10-09 09:28:15 +000017PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
Tom Rini958a8f82014-02-25 10:27:01 -050018PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED)