toolchain: sh64 fixes
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 13 Jan 2009 15:09:18 +0000 (15:09 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 13 Jan 2009 15:09:18 +0000 (15:09 -0000)
- arch/sh and arch/sh64 got merged in 2.6.25, so use arch/sh for sh64 as well
- use little endian for sh64, like for 32bit sh

sh64 still doesn't build, but gets further along now.

toolchain/kernel-headers/kernel-headers.mk
toolchain/uClibc/uclibc.mk

index 6aedc323ca6a8ea6bbe3cb5a9d51aa8030ef90de..50326c6cdd6755dc46f3b4a5b64011ce6d460d14 100644 (file)
@@ -20,8 +20,7 @@ KERNEL_ARCH:=$(shell $(SHELL) -c "echo \"$(ARCH)\" | sed -e \"s/-.*//\" \
        -e s/parisc64/parisc/ \
        -e s/powerpc64/powerpc/ \
        -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
-       -e s/sh2.*/sh/ -e s/sh3.*/sh/ -e s/sh4.*/sh/ \
-       -e s/nios2.*/nios2nommu/")
+       -e s/sh.*/sh/ -e s/nios2.*/nios2nommu/")
 
 # assume old manually sanitized kernel-headers
 LINUX_HEADERS_IS_KERNEL=n
index edcd32b869b05adfb1d82107ed3262d9c5c58118..af35e33d285815e9d5ed8462f9523a4e66730688 100644 (file)
@@ -72,8 +72,8 @@ UCLIBC_TARGET_ENDIAN:=$(shell $(SHELL) -c "echo $(ARCH) | sed \
                -e 's/arm/LITTLE/' \
                -e 's/mipsel/LITTLE/' \
                -e 's/mips/BIG/' \
-               -e 's/sh[234].*eb/BIG/' \
-               -e 's/sh[234]/LITTLE/' \
+               -e 's/sh.*eb/BIG/' \
+               -e 's/sh.*/LITTLE/' \
                -e 's/sparc.*/BIG/' \
 ")