summaryrefslogtreecommitdiff
path: root/arch/sh/cpu/sh2/config.mk
blob: 12e202d539a01deba8a66e62be9f4adb78c861e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# (C) Copyright 2007-2008
# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
#
# SPDX-License-Identifier:	GPL-2.0+
#
#
ENDIANNESS += -EB

ifdef CONFIG_CPU_SH2A
PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
else # SH2
PLATFORM_CPPFLAGS += -m3e -mb
endif
PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)

PLATFORM_LDFLAGS += $(ENDIANNESS)