blob: 0578fa3fd81254c8fb968962e2b199b174fdad31 [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
Masahiro Yamada9b6e2c32014-02-28 14:33:30 +09008ifeq ($(CROSS_COMPILE),)
9CROSS_COMPILE := sh4-linux-
10endif
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -040011
Wolfgang Denk8ae86b72011-02-04 14:25:17 +010012CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000
Mike Frysinger262ae0a2009-09-03 23:12:47 -040013ifeq ($(CPU),sh2)
Wolfgang Denk8ae86b72011-02-04 14:25:17 +010014CONFIG_STANDALONE_LOAD_ADDR += -EB
Mike Frysinger262ae0a2009-09-03 23:12:47 -040015endif
16
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090017PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
Nobuhiro Iwamatsu006442b2010-10-19 17:07:07 +090018PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
Haiying Wang6dc1eceb2011-02-22 16:38:05 -050019LDFLAGS_FINAL = --gc-sections
Masahiro Yamada08f11152014-02-26 14:51:03 +090020PLATFORM_RELFLAGS += -ffixed-r13