blob: 758c0701e5d70da89c9af63c298331c60a2283df [file] [log] [blame]
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09001#
2# (C) Copyright 2000-2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09006#
7
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -04008CROSS_COMPILE ?= sh4-linux-
9
Wolfgang Denk8ae86b72011-02-04 14:25:17 +010010CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040011ifeq ($(CPU),sh2)
Wolfgang Denk8ae86b72011-02-04 14:25:17 +010012CONFIG_STANDALONE_LOAD_ADDR += -EB
Mike Frysinger262ae0a2009-09-03 23:12:47 -040013endif
14
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090015PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Nobuhiro Iwamatsu006442b2010-10-19 17:07:07 +090016PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050017LDFLAGS_FINAL = --gc-sections