2008-08-31 13:48:33 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2007-2008
|
|
|
|
# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2008-08-31 13:48:33 +00:00
|
|
|
#
|
|
|
|
#
|
2011-01-06 01:23:54 +00:00
|
|
|
ENDIANNESS += -EB
|
|
|
|
|
2011-06-09 06:03:34 +00:00
|
|
|
ifdef CONFIG_SH2A
|
2011-10-13 04:45:47 +00:00
|
|
|
PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding
|
2011-06-09 06:03:34 +00:00
|
|
|
else # SH2
|
2008-08-31 13:48:33 +00:00
|
|
|
PLATFORM_CPPFLAGS += -m3e -mb
|
2011-06-09 06:03:34 +00:00
|
|
|
endif
|
2011-10-13 04:45:47 +00:00
|
|
|
PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
|
2011-06-09 06:03:34 +00:00
|
|
|
|
2008-08-31 13:48:33 +00:00
|
|
|
PLATFORM_RELFLAGS += -ffixed-r13
|
2011-01-06 01:23:54 +00:00
|
|
|
PLATFORM_LDFLAGS += $(ENDIANNESS)
|