aboutsummaryrefslogtreecommitdiffstats
path: root/distrib
diff options
context:
space:
mode:
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)