diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-12-15 11:53:20 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-15 12:33:21 +1100 |
commit | 8b794c5312203452e46f4b4f397ae062f408bf6e (patch) | |
tree | 44f15d1ee892bc095223fde7c74539d140b94faa /Makefile | |
parent | fef06cd9d86c09dc7053a44eea71ab77f3b9da5d (diff) | |
download | skiboot-8b794c5312203452e46f4b4f397ae062f408bf6e.zip skiboot-8b794c5312203452e46f4b4f397ae062f408bf6e.tar.gz skiboot-8b794c5312203452e46f4b4f397ae062f408bf6e.tar.bz2 |
Makefile: Support CROSS_COMPILE as well as CROSS
A lot of projects use CROSS_COMPILE for specifying the cross compile
prefix, so support that as well as CROSS.
For example this allows a user to set CROSS_COMPILE once in their
environment and build both Linux & Skiboot with the same setting.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
[stewart@linux.vnet.ibm.com: only set if env variable is set]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6,6 +6,9 @@ # Example: CROSS= powerpc64-unknown-linux-gnu- # ARCH = $(shell uname -m) +ifdef CROSS_COMPILE + CROSS ?= $(CROSS_COMPILE) +endif ifeq ("$(ARCH)", "ppc64") CROSS ?= else |