blob: 78bb2660e1e340f2dcec1908b9c4f03ee3239879 [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
Wolfgang Denk8ae86b72011-02-04 14:25:17 +01006CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -04007ifeq ($(CPU),sh2)
Daniel Schwierzeck1d3b97c2018-09-23 19:15:15 +02008LDFLAGS_STANDALONE += -EB
Mike Frysinger262ae0a2009-09-03 23:12:47 -04009endif
10
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090011PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Marek Vasut56f01742020-05-03 17:22:43 +020012PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050013LDFLAGS_FINAL = --gc-sections
Masahiro Yamada08f11152014-02-26 14:51:03 +090014PLATFORM_RELFLAGS += -ffixed-r13