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