aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTimo Juhani Lindfors <timo.lindfors@iki.fi>2009-02-23 01:21:30 +0000
committerAndy Green <agreen@octopus.localdomain>2009-02-23 01:21:30 +0000
commitb6761492d86d6763f0b9ef10b712470c53f821ea (patch)
tree684675bfd483283eddf0b1e0cdd4255e4ecbf20b /build
parent8df75a337131d835d4dd8509696d684e4fa8970e (diff)
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?
Diffstat (limited to 'build')
-rwxr-xr-xbuild4
1 files changed, 3 insertions, 1 deletions
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
#