diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-04 20:50:58 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-19 22:38:46 +0400 |
commit | 94f3c29b1ce931836cdc318a41350fc053c54a3d (patch) | |
tree | fbbd725a252aded9de4e99a40f84f066622dad36 | |
parent | 746cb3d3ce315b53263a1f8a97390be84cfd5ee3 (diff) | |
download | linux-94f3c29b1ce931836cdc318a41350fc053c54a3d.tar.xz |
parisc: fix NATIVE set up in build
commit 93782eba49e23c3f311a6b05a19ba15927ec4e8b upstream.
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 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 |