From 070e7c147b114890828b5f087430bb01306a1fe7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 11 Dec 2004 09:56:58 +0000 Subject: Patch from Volmat Alain adding SH3/SH3EB SH4EB support --- toolchain/kernel-headers/kernel-headers.mk | 12 ++++++++++++ toolchain/uClibc/uclibc.mk | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'toolchain') diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk index 0e77c4815..f5640a472 100644 --- a/toolchain/kernel-headers/kernel-headers.mk +++ b/toolchain/kernel-headers/kernel-headers.mk @@ -107,10 +107,22 @@ $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_DIR)/.patched ln -fs arch-ebsa285 arch; fi); \ elif [ "$(ARCH)" = "cris" ];then \ (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-cris asm;) \ + elif [ "$(ARCH)" = "sh3" ];then \ + (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-sh asm; \ + cd asm; \ + ln -s cpu-sh3 cpu) \ + elif [ "$(ARCH)" = "sh3eb" ];then \ + (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-sh asm; \ + cd asm; \ + ln -s cpu-sh3 cpu) \ elif [ "$(ARCH)" = "sh4" ];then \ (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-sh asm; \ cd asm; \ ln -s cpu-sh4 cpu) \ + elif [ "$(ARCH)" = "sh4eb" ];then \ + (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-sh asm; \ + cd asm; \ + ln -s cpu-sh4 cpu) \ else \ (cd $(LINUX_HEADERS_DIR)/include; ln -fs asm-$(ARCH)$(NOMMU) asm;) \ fi diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk index 256a04282..bff50fd5b 100644 --- a/toolchain/uClibc/uclibc.mk +++ b/toolchain/uClibc/uclibc.mk @@ -26,7 +26,7 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ -e 's/ppc/powerpc/g' \ -e 's/v850.*/v850/g' \ -e 's/sh64/sh/' \ - -e 's/sh[234]/sh/' \ + -e 's/sh[234].*/sh/' \ -e 's/mips.*/mips/' \ -e 's/mipsel.*/mips/' \ -e 's/cris.*/cris/' \ -- cgit v1.2.3