From b6761492d86d6763f0b9ef10b712470c53f821ea Mon Sep 17 00:00:00 2001 From: Timo Juhani Lindfors Date: Mon, 23 Feb 2009 01:21:30 +0000 Subject: Make CROSS_COMPILE overrideable in ./build? Hi, since I am using packaged cross-compiler from debian I need to change export CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- in ./build to export CROSS_COMPILE=arm-angstrom-linux-gnueabi- every time there are changes to ./build and also instruct others to do this when they want to test their kernels with the "normal cross-compiler" and not the one from openmoko. How about making it possible to override CROSS_COMPILE with for example the following change? --- build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build b/build index 34a34ed6a11..b0e49ebfa16 100755 --- a/build +++ b/build @@ -24,7 +24,9 @@ fi mkdir -p $1 -export CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- +if [ -z "$CROSS_COMPILE" ]; then + export CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- +fi make O=$1 ARCH=arm silentoldconfig # -- cgit v1.2.3