xref: /openbmc/u-boot/arch/sh/cpu/sh2/config.mk (revision 14eeb926)
18f0fec74SPeter Tyser#
28f0fec74SPeter Tyser# (C) Copyright 2007-2008
38f0fec74SPeter Tyser# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
48f0fec74SPeter Tyser#
51a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
68f0fec74SPeter Tyser#
78f0fec74SPeter Tyser#
88aba9dceSNobuhiro IwamatsuENDIANNESS += -EB
98aba9dceSNobuhiro Iwamatsu
108cc44418SNobuhiro Iwamatsuifdef CONFIG_SH2A
114cde1740SMike FrysingerPLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding
128cc44418SNobuhiro Iwamatsuelse # SH2
138f0fec74SPeter TyserPLATFORM_CPPFLAGS += -m3e -mb
148cc44418SNobuhiro Iwamatsuendif
15*14eeb926SNobuhiro IwamatsuPLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic)
168cc44418SNobuhiro Iwamatsu
178f0fec74SPeter TyserPLATFORM_RELFLAGS += -ffixed-r13
188aba9dceSNobuhiro IwamatsuPLATFORM_LDFLAGS += $(ENDIANNESS)
19