xref: /openbmc/u-boot/arch/arm/cpu/armv7/config.mk (revision b823fd9b)
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
25f61faebaSAneesh V# If armv7-a is not supported by GCC fall-back to armv5, which is
26f61faebaSAneesh V# supported by more tool-chains
27f61faebaSAneesh VPF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
28f61faebaSAneesh VPLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
29f61faebaSAneesh V
30f56348afSSteve Sakoman# =========================================================================
31f56348afSSteve Sakoman#
32f56348afSSteve Sakoman# Supply options according to compiler version
33f56348afSSteve Sakoman#
34f56348afSSteve Sakoman# =========================================================================
35cca4e4aeSWolfgang DenkPF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
36cca4e4aeSWolfgang DenkPLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT)
37*b823fd9bSAlbert ARIBAUD
38*b823fd9bSAlbert ARIBAUD# SEE README.arm-unaligned-accesses
39*b823fd9bSAlbert ARIBAUDPF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
40*b823fd9bSAlbert ARIBAUDPLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
41*b823fd9bSAlbert ARIBAUD
4238fcc71cSStefano Babicifneq ($(CONFIG_IMX_CONFIG),)
4338fcc71cSStefano BabicALL-y	+= $(obj)u-boot.imx
4438fcc71cSStefano Babicendif
45