diff options
Diffstat (limited to 'roms/u-boot/arch/sh/cpu/sh2/config.mk')
-rw-r--r-- | roms/u-boot/arch/sh/cpu/sh2/config.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roms/u-boot/arch/sh/cpu/sh2/config.mk b/roms/u-boot/arch/sh/cpu/sh2/config.mk new file mode 100644 index 00000000..4904d76d --- /dev/null +++ b/roms/u-boot/arch/sh/cpu/sh2/config.mk @@ -0,0 +1,17 @@ +# +# (C) Copyright 2007-2008 +# Nobuhiro Iwamatsu <iwamatsu@nigauri.org> +# +# SPDX-License-Identifier: GPL-2.0+ +# +# +ENDIANNESS += -EB + +ifdef CONFIG_SH2A +PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb +else # SH2 +PLATFORM_CPPFLAGS += -m3e -mb +endif +PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic) + +PLATFORM_LDFLAGS += $(ENDIANNESS) |