1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2000-2002 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 6ifeq ($(CROSS_COMPILE),) 7CROSS_COMPILE := sh4-linux- 8endif 9 10CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000 11ifeq ($(CPU),sh2) 12CONFIG_STANDALONE_LOAD_ADDR += -EB 13endif 14 15PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ 16PLATFORM_RELFLAGS += -fpic 17LDFLAGS_FINAL = --gc-sections 18PLATFORM_RELFLAGS += -ffixed-r13 19