From 8415208ae4d279bcab37fe4b475167c465303cf5 Mon Sep 17 00:00:00 2001 From: Nikunj A Dadhania Date: Thu, 27 Mar 2014 15:55:15 +0530 Subject: build: auto-detect ppc64 architecture Remove the silliness of running make on powerpc like this; $ CROSS= make The default value of CROSS prevented this, detect the architecture in the makefile and sent the CROSS accordingly. Signed-off-by: Nikunj A Dadhania --- make.rules | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'make.rules') diff --git a/make.rules b/make.rules index dae1572..aebc4e3 100644 --- a/make.rules +++ b/make.rules @@ -16,7 +16,14 @@ # CROSS is the prefix of your cross-compiler. # You can override this variable in your environment (export CROSS=...). +ARCH := $(shell uname -p) + +# Auto-detect ppc64 +ifeq ($(ARCH), ppc64) +CROSS = "" +else CROSS ?= powerpc64-linux- +endif CELLSIZE ?= 64 -- cgit v1.1