aboutsummaryrefslogtreecommitdiffstats
path: root/distrib
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2011-11-03 17:20:32 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2011-11-03 17:24:04 +0800
commit6f0425a8f6d386d7ca10e69ad90cbd5d5c5228a9 (patch)
tree32f9716718c7b1173b4241d73f52d4f3c5ee36d5 /distrib
parentc53b475e5bf2301da452cd2c81fed7c1fea2ec2a (diff)
downloadexternal_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-xdistrib/build-kernel.sh10
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)