]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: fix NATIVE set up in build
authorMike Frysinger <vapier@gentoo.org>
Sat, 4 May 2013 16:50:58 +0000 (16:50 +0000)
committerHelge Deller <deller@gmx.de>
Mon, 6 May 2013 21:09:33 +0000 (23:09 +0200)
The ifeq operator does not accept globs, so this little bit of code will
never match (unless uname literally prints out "parsic*").  Rewrite to
use a pattern matching operator so that NATIVE is set to 1 on parisc.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/Makefile

index 113e28206503ae55e8915d7382d17dc059a20eee..2f967cc6649e0cab325136624a614af4f0784281 100644 (file)
@@ -24,9 +24,7 @@ CHECKFLAGS    += -D__hppa__=1
 LIBGCC         = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 MACHINE                := $(shell uname -m)
-ifeq ($(MACHINE),parisc*)
-NATIVE         := 1
-endif
+NATIVE         := $(if $(filter parisc%,$(MACHINE)),1,0)
 
 ifdef CONFIG_64BIT
 UTS_MACHINE    := parisc64