diff options
Diffstat (limited to 'qemu/roms/u-boot/arch/sh/config.mk')
-rw-r--r-- | qemu/roms/u-boot/arch/sh/config.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qemu/roms/u-boot/arch/sh/config.mk b/qemu/roms/u-boot/arch/sh/config.mk new file mode 100644 index 000000000..0578fa3fd --- /dev/null +++ b/qemu/roms/u-boot/arch/sh/config.mk @@ -0,0 +1,20 @@ +# +# (C) Copyright 2000-2002 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +ifeq ($(CROSS_COMPILE),) +CROSS_COMPILE := sh4-linux- +endif + +CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000 +ifeq ($(CPU),sh2) +CONFIG_STANDALONE_LOAD_ADDR += -EB +endif + +PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ +PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE) +LDFLAGS_FINAL = --gc-sections +PLATFORM_RELFLAGS += -ffixed-r13 |