1# 2# (C) Copyright 2007-2008 3# Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7# 8ENDIANNESS += -EB 9 10ifdef CONFIG_SH2A 11PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb -ffreestanding 12else # SH2 13PLATFORM_CPPFLAGS += -m3e -mb 14endif 15PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic) 16 17PLATFORM_RELFLAGS += -ffixed-r13 18PLATFORM_LDFLAGS += $(ENDIANNESS) 19