Commit 93782eba49e23c3f311a6b05a19ba15927ec4e8b

Authored by Mike Frysinger
Committed by Helge Deller
1 parent dde397981c

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>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

arch/parisc/Makefile
... ... @@ -24,9 +24,7 @@
24 24 LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
25 25  
26 26 MACHINE := $(shell uname -m)
27   -ifeq ($(MACHINE),parisc*)
28   -NATIVE := 1
29   -endif
  27 +NATIVE := $(if $(filter parisc%,$(MACHINE)),1,0)
30 28  
31 29 ifdef CONFIG_64BIT
32 30 UTS_MACHINE := parisc64