From 6f0425a8f6d386d7ca10e69ad90cbd5d5c5228a9 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Thu, 3 Nov 2011 17:20:32 +0800 Subject: Fixed build-kernel.sh to set ZIMAGE when --cross is specified Change-Id: I039cd6072795781a55d1f1280f9c2cf2d706b457 --- distrib/build-kernel.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'distrib') 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) -- cgit v1.1