[PATCH 2/2] Fix powerpc build on Ubuntu

Michael Ellerman <[email protected]> Wed, 10 Sep 2014 14:26:54 +1000
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
In commit df1508cd4151 "move rtas syscall definition to ppc specific
directory" the rtas syscall got moved to syscalls/ppc, and we added a
rule in the Makefile to pick that up based on the output of
gcc -dumpmachine.

That rule only looks for "ppc*" though, on Ubuntu gcc emits
"powerpc-linux-gnu", or "powerpc64le-linux-gnu".
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index eeb8c740b19e..5eb21b55a1e3 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ MACHINE		= $(shell $(CC) -dumpmachine)
 SYSCALLS_ARCH	= $(shell case "$(MACHINE)" in \
 		  (sh*) echo syscalls/sh/*.c ;; \
 		  (ia64*) echo syscalls/ia64/*.c ;; \
-		  (ppc*) echo syscalls/ppc/*.c ;; \
+		  (ppc*|powerpc*) echo syscalls/ppc/*.c ;; \
 		  (sparc*) echo syscalls/sparc/*.c ;; \
 		  esac)
 
-- 
1.9.1