blob: 8a0de9671461054bec076628d0ae08c680ce806c [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
Mike Frysingera6327902011-10-13 00:45:47 -040015PLATFORM_CPPFLAGS += $(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)