blob: a408264d4b1116da66220dfcf72e410dd9ec521c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09002#
3# (C) Copyright 2000-2002
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09005
Mike Frysinger262ae0a2009-09-03 23:12:47 -04006ifeq ($(CPU),sh2)
Daniel Schwierzeck1d3b97c2018-09-23 19:15:15 +02007LDFLAGS_STANDALONE += -EB
Mike Frysinger262ae0a2009-09-03 23:12:47 -04008endif
9
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090010PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Marek Vasut56f01742020-05-03 17:22:43 +020011PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050012LDFLAGS_FINAL = --gc-sections
Masahiro Yamada08f11152014-02-26 14:51:03 +090013PLATFORM_RELFLAGS += -ffixed-r13