diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2011-11-03 17:20:32 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2011-11-03 17:24:04 +0800 |
commit | 6f0425a8f6d386d7ca10e69ad90cbd5d5c5228a9 (patch) | |
tree | 32f9716718c7b1173b4241d73f52d4f3c5ee36d5 /distrib | |
parent | c53b475e5bf2301da452cd2c81fed7c1fea2ec2a (diff) | |
download | external_qemu-6f0425a8f6d386d7ca10e69ad90cbd5d5c5228a9.zip external_qemu-6f0425a8f6d386d7ca10e69ad90cbd5d5c5228a9.tar.gz external_qemu-6f0425a8f6d386d7ca10e69ad90cbd5d5c5228a9.tar.bz2 |
Fixed build-kernel.sh to set ZIMAGE when --cross is specified
Change-Id: I039cd6072795781a55d1f1280f9c2cf2d706b457
Diffstat (limited to 'distrib')
-rwxr-xr-x | distrib/build-kernel.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/distrib/build-kernel.sh b/distrib/build-kernel.sh index c7e9a8f..0329156 100755 --- a/distrib/build-kernel.sh +++ b/distrib/build-kernel.sh @@ -129,12 +129,10 @@ else arm) CROSSTOOLCHAIN=arm-eabi-4.4.3 CROSSPREFIX=arm-eabi- - ZIMAGE=zImage ;; x86) CROSSTOOLCHAIN=i686-android-linux-4.4.3 CROSSPREFIX=i686-android-linux- - ZIMAGE=bzImage ;; *) echo "ERROR: Unsupported architecture!" @@ -144,6 +142,14 @@ else echo "Auto-config: --cross=$CROSSPREFIX" fi +ZIMAGE=zImage + +case $ARCH in + x86) + ZIMAGE=bzImage + ;; +esac + # If the cross-compiler is not in the path, try to find it automatically CROSS_COMPILER="${CROSSPREFIX}gcc" CROSS_COMPILER_VERSION=$($CROSS_COMPILER --version 2>/dev/null) |