diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-04 12:50:58 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-05-06 17:09:33 -0400 |
commit | 93782eba49e23c3f311a6b05a19ba15927ec4e8b (patch) | |
tree | f3370b825640b088dd6c815a551229cd49568e8f | |
parent | dde397981cc14c2ee0c33d395691e63b1ee40fe5 (diff) |
parisc: fix NATIVE set up in build
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>
-rw-r--r-- | arch/parisc/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index 113e28206503..2f967cc6649e 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile | |||
@@ -24,9 +24,7 @@ CHECKFLAGS += -D__hppa__=1 | |||
24 | LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | 24 | LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
25 | 25 | ||
26 | MACHINE := $(shell uname -m) | 26 | MACHINE := $(shell uname -m) |
27 | ifeq ($(MACHINE),parisc*) | 27 | NATIVE := $(if $(filter parisc%,$(MACHINE)),1,0) |
28 | NATIVE := 1 | ||
29 | endif | ||
30 | 28 | ||
31 | ifdef CONFIG_64BIT | 29 | ifdef CONFIG_64BIT |
32 | UTS_MACHINE := parisc64 | 30 | UTS_MACHINE := parisc64 |