blob: 85dab383e745cc129b343c3beb2b44ac363f0ae3 [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
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +09006ifeq ($(CROSS_COMPILE),)
7CROSS_COMPILE := sh4-linux-
8endif
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -04009
Wolfgang Denk8ae86b72011-02-04 14:25:17 +010010CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040011ifeq ($(CPU),sh2)
Daniel Schwierzeck1d3b97c2018-09-23 19:15:15 +020012LDFLAGS_STANDALONE += -EB
Mike Frysinger262ae0a2009-09-03 23:12:47 -040013endif
14
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090015PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Marek Vasut56f01742020-05-03 17:22:43 +020016PLATFORM_RELFLAGS += -fpic -ffunction-sections -fdata-sections
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050017LDFLAGS_FINAL = --gc-sections
Masahiro Yamada08f11152014-02-26 14:51:03 +090018PLATFORM_RELFLAGS += -ffixed-r13