From b92dc96d7f82727329d9e0939748a57b3e6d402e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 31 May 2015 16:01:00 -0500 Subject: add basic infrastructure for superh toolchains with sh2/sh3/sh4a cpus --- toolchain/uclibc-ng/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'toolchain/uclibc-ng/Makefile') diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile index 547f63d15..8647e3d90 100644 --- a/toolchain/uclibc-ng/Makefile +++ b/toolchain/uclibc-ng/Makefile @@ -197,6 +197,35 @@ ifeq ($(ADK_CPU_MIPS32R2),y) endif endif +# sh +ifeq ($(ADK_TARGET_ARCH_SH),y) +ifeq ($(ADK_CPU_SH4),y) + $(SED) 's/.*\(CONFIG_SH2A=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH2=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH3=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH4\).*/\1=y/' ${WRKBUILD}/.config +endif +ifeq ($(ADK_CPU_SH3),y) + $(SED) 's/.*\(CONFIG_SH2A=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH2=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH4=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH3\).*/\1=y/' ${WRKBUILD}/.config +endif +ifeq ($(ADK_CPU_SH2),y) + $(SED) 's/.*\(CONFIG_SH2A=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH3=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH4=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH2\).*/\1=y/' ${WRKBUILD}/.config +endif +ifeq ($(ADK_CPU_SH2A),y) + $(SED) 's/.*\(CONFIG_SH2A=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH3=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH4=\).*/# \1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_SH2A\).*/\1=y/' ${WRKBUILD}/.config +endif +endif + +# x86 ifeq ($(ADK_TARGET_ARCH_X86),y) ifeq ($(ADK_CPU_I486),y) $(SED) 's/.*\(CONFIG_686\).*/# \1 is not set/' ${WRKBUILD}/.config -- cgit v1.2.3