summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-04 16:50:58 +0000
committerSteven Rostedt <rostedt@goodmis.org>2013-06-05 10:30:24 -0400
commit97b986e2cc815d8c28949b3e7ab11749e7f7a443 (patch)
tree292d7032803918d0c84c9dcea3e016a273a40c73
parent7c173b5daeaf785f70f1321c2ea7f2d13e6d5108 (diff)
downloadlinux-rt-97b986e2cc815d8c28949b3e7ab11749e7f7a443.tar.gz
parisc: fix NATIVE set up in build
[ Upstream commit 93782eba49e23c3f311a6b05a19ba15927ec4e8b ] 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> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--arch/parisc/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 5707f1a62341..47cec3c099ab 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -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