xref: /openbmc/u-boot/arch/sh/cpu/sh2/config.mk (revision fabbeb33)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2007-2008
4# Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
5#
6ENDIANNESS += -EB
7
8ifdef CONFIG_CPU_SH2A
9PLATFORM_CPPFLAGS += -m2a-nofpu -mb
10else # SH2
11PLATFORM_CPPFLAGS += -m3e -mb
12endif
13PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
14
15PLATFORM_LDFLAGS += $(ENDIANNESS)
16