xref: /openbmc/u-boot/arch/sh/cpu/sh2/config.mk (revision afee3fb8)
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_CPU_SH2A
11PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
12else # SH2
13PLATFORM_CPPFLAGS += -m3e -mb
14endif
15PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
16
17PLATFORM_LDFLAGS += $(ENDIANNESS)
18