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