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