xref: /openbmc/u-boot/arch/sh/cpu/sh2/config.mk (revision 4cde1740)
18f0fec74SPeter Tyser#
28f0fec74SPeter Tyser# (C) Copyright 2007-2008
38f0fec74SPeter Tyser# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
48f0fec74SPeter Tyser#
58f0fec74SPeter Tyser# See file CREDITS for list of people who contributed to this
68f0fec74SPeter Tyser# project.
78f0fec74SPeter Tyser#
88f0fec74SPeter Tyser# This program is free software; you can redistribute it and/or
98f0fec74SPeter Tyser# modify it under the terms of the GNU General Public License as
108f0fec74SPeter Tyser# published by the Free Software Foundation; either version 2 of
118f0fec74SPeter Tyser# the License, or (at your option) any later version.
128f0fec74SPeter Tyser#
138f0fec74SPeter Tyser# This program is distributed in the hope that it will be useful,
148f0fec74SPeter Tyser# but WITHOUT ANY WARRANTY; without even the implied warranty of
158f0fec74SPeter Tyser# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
168f0fec74SPeter Tyser# GNU General Public License for more details.
178f0fec74SPeter Tyser#
188f0fec74SPeter Tyser# You should have received a copy of the GNU General Public License
198f0fec74SPeter Tyser# along with this program; if not, write to the Free Software
208f0fec74SPeter Tyser# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
218f0fec74SPeter Tyser# MA 02111-1307 USA
228f0fec74SPeter Tyser#
238f0fec74SPeter Tyser#
248aba9dceSNobuhiro IwamatsuENDIANNESS += -EB
258aba9dceSNobuhiro Iwamatsu
268cc44418SNobuhiro Iwamatsuifdef CONFIG_SH2A
27*4cde1740SMike FrysingerPLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding
288cc44418SNobuhiro Iwamatsuelse # SH2
298f0fec74SPeter TyserPLATFORM_CPPFLAGS += -m3e -mb
308cc44418SNobuhiro Iwamatsuendif
31*4cde1740SMike FrysingerPLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
328cc44418SNobuhiro Iwamatsu
338f0fec74SPeter TyserPLATFORM_RELFLAGS += -ffixed-r13
348aba9dceSNobuhiro IwamatsuPLATFORM_LDFLAGS += $(ENDIANNESS)
35