blob: 931964a72645616d728cb1a64f2cc430853e3aca [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu6ad43d02008-08-31 22:48:33 +09002#
3# (C) Copyright 2007-2008
4# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
5#
Nobuhiro Iwamatsu8aba9dc2011-01-06 10:23:54 +09006ENDIANNESS += -EB
7
Masahiro Yamada7d236662014-11-06 15:55:21 +09008ifdef CONFIG_CPU_SH2A
Tom Rini036c9672018-02-17 17:30:38 -05009PLATFORM_CPPFLAGS += -m2a-nofpu -mb
Nobuhiro Iwamatsu8cc44412011-06-09 15:03:34 +090010else # SH2
Nobuhiro Iwamatsu6ad43d02008-08-31 22:48:33 +090011PLATFORM_CPPFLAGS += -m3e -mb
Nobuhiro Iwamatsu8cc44412011-06-09 15:03:34 +090012endif
Masahiro Yamada7d236662014-11-06 15:55:21 +090013PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
Nobuhiro Iwamatsu8cc44412011-06-09 15:03:34 +090014
Nobuhiro Iwamatsu8aba9dc2011-01-06 10:23:54 +090015PLATFORM_LDFLAGS += $(ENDIANNESS)