]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Correct SUBARCH matching.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 2 Nov 2007 03:22:47 +0000 (12:22 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 2 Nov 2007 03:22:47 +0000 (12:22 +0900)
When configuring the kernel natively the uname matching is off,
so fix up the uname mangling to get the proper SUBARCH. Needs
an explicit range so that SH-5 doesn't break.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Makefile

index 8816060cdf4046a62221838d899a604f64dc8526..188c3b6b3fa9ac33fbe9fba2417365eae23585d6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,8 @@ export srctree objtree VPATH TOPDIR
 SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
                                  -e s/arm.*/arm/ -e s/sa110/arm/ \
                                  -e s/s390x/s390/ -e s/parisc64/parisc/ \
-                                 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
+                                 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
+                                 -e s/sh[234].*/sh/ )
 
 # Cross compiling and selecting different set of gcc/bin-utils
 # ---------------------------------------------------------------------------