blob: 69273b4f382fa38f3963a852201ccf5dbae59ea6 [file] [log] [blame]
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +09001#
2# (C) Copyright 2007-2008
3# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +09006#
7#
Nobuhiro Iwamatsub859b8c2011-01-06 10:23:54 +09008ENDIANNESS += -EB
9
Nobuhiro Iwamatsu90520ab2011-06-09 15:03:34 +090010ifdef CONFIG_SH2A
Mike Frysingera6327902011-10-13 00:45:47 -040011PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding
Nobuhiro Iwamatsu90520ab2011-06-09 15:03:34 +090012else # SH2
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090013PLATFORM_CPPFLAGS += -m3e -mb
Nobuhiro Iwamatsu90520ab2011-06-09 15:03:34 +090014endif
Nobuhiro Iwamatsubc2f60b2014-01-08 13:46:06 +090015PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic)
Nobuhiro Iwamatsu90520ab2011-06-09 15:03:34 +090016
Nobuhiro Iwamatsu5b6918e2008-08-31 22:48:33 +090017PLATFORM_RELFLAGS += -ffixed-r13
Nobuhiro Iwamatsub859b8c2011-01-06 10:23:54 +090018PLATFORM_LDFLAGS += $(ENDIANNESS)