Skip to content

Commit

Permalink
parisc: fix NATIVE set up in build
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
vapier authored and hdeller committed May 6, 2013
1 parent dde3979 commit 93782eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/parisc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93782eb

Please sign in to comment.