blob: 12e202d539a01deba8a66e62be9f4adb78c861e0 [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
Masahiro Yamada7d236662014-11-06 15:55:21 +090010ifdef CONFIG_CPU_SH2A
Masahiro Yamadaaceba5a2014-02-26 14:51:02 +090011PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
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
Masahiro Yamada7d236662014-11-06 15:55:21 +090015PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
Nobuhiro Iwamatsu8cc44412011-06-09 15:03:34 +090016
Nobuhiro Iwamatsu8aba9dc2011-01-06 10:23:54 +090017PLATFORM_LDFLAGS += $(ENDIANNESS)