From 43f6ed40d1bd494027d5cf32ac5a7699af66f095 Mon Sep 17 00:00:00 2001 From: Tobias Diedrich Date: Wed, 21 Oct 2015 21:33:36 +0200 Subject: [PATCH] Allow overriding CROSS_COMPILE on the commandline. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77f44bb..8939d02 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ export BUILD_TOPDIR=$(PWD) export STAGING_DIR=$(BUILD_TOPDIR)/tmp -export MAKECMD=make --silent --no-print-directory ARCH=mips CROSS_COMPILE=mips-linux-gnu- +ifndef CROSS_COMPILE +CROSS_COMPILE = mips-linux-gnu- +endif +export CROSS_COMPILE + +export MAKECMD=make --silent --no-print-directory ARCH=mips # boot delay (time to autostart boot command) export CONFIG_BOOTDELAY=1 -- 2.25.1