xref: /openbmc/u-boot/arch/arm/cpu/armv7/config.mk (revision cca4e4ae)
1f56348afSSteve Sakoman#
2f56348afSSteve Sakoman# (C) Copyright 2002
3f56348afSSteve Sakoman# Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
4f56348afSSteve Sakoman#
5f56348afSSteve Sakoman# See file CREDITS for list of people who contributed to this
6f56348afSSteve Sakoman# project.
7f56348afSSteve Sakoman#
8f56348afSSteve Sakoman# This program is free software; you can redistribute it and/or
9f56348afSSteve Sakoman# modify it under the terms of the GNU General Public License as
10f56348afSSteve Sakoman# published by the Free Software Foundation; either version 2 of
11f56348afSSteve Sakoman# the License, or (at your option) any later version.
12f56348afSSteve Sakoman#
13f56348afSSteve Sakoman# This program is distributed in the hope that it will be useful,
14f56348afSSteve Sakoman# but WITHOUT ANY WARRANTY; without even the implied warranty of
15f56348afSSteve Sakoman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16f56348afSSteve Sakoman# GNU General Public License for more details.
17f56348afSSteve Sakoman#
18f56348afSSteve Sakoman# You should have received a copy of the GNU General Public License
19f56348afSSteve Sakoman# along with this program; if not, write to the Free Software
20f56348afSSteve Sakoman# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21f56348afSSteve Sakoman# MA 02111-1307 USA
22f56348afSSteve Sakoman#
23f56348afSSteve SakomanPLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
24f56348afSSteve Sakoman
25f56348afSSteve Sakoman# Make ARMv5 to allow more compilers to work, even though its v7a.
26f56348afSSteve SakomanPLATFORM_CPPFLAGS += -march=armv5
27f56348afSSteve Sakoman# =========================================================================
28f56348afSSteve Sakoman#
29f56348afSSteve Sakoman# Supply options according to compiler version
30f56348afSSteve Sakoman#
31f56348afSSteve Sakoman# =========================================================================
32*cca4e4aeSWolfgang DenkPF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
33*cca4e4aeSWolfgang DenkPLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
34