aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorKalimochoAz <calimochoazucarado@gmail.com>2012-02-25 01:55:36 +0100
committerKalimochoAz <calimochoazucarado@gmail.com>2012-02-25 01:55:36 +0100
commit0ef231500f50a3f9a9d8e282833b9cfc69d5173a (patch)
tree12f2e14c4af0c22230688568f80af0ac4d1c6c93 /build.sh
parentc2992053ecfdfaece14dca77c6cf290cc8c9d8b7 (diff)
downloadkernel_samsung_crespo-0ef231500f50a3f9a9d8e282833b9cfc69d5173a.zip
kernel_samsung_crespo-0ef231500f50a3f9a9d8e282833b9cfc69d5173a.tar.gz
kernel_samsung_crespo-0ef231500f50a3f9a9d8e282833b9cfc69d5173a.tar.bz2
Update build script
Now ask if you want to send the kernel to the device
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh53
1 files changed, 32 insertions, 21 deletions
diff --git a/build.sh b/build.sh
index b0cc479..e3612d1 100755
--- a/build.sh
+++ b/build.sh
@@ -68,28 +68,30 @@ CreateKernelZip ()
rm *.zip
KZIPNAME=$KNAME.v$iMayor.$iMinor.$sVersionMerge.zip
zip $KZIPNAME * -r
- WaitForDevice
- echo Going into fastboot
- if adb reboot-bootloader ; then
- sleep 4
- echo Pushing kernel file
- if fastboot flash zimage kernel/zImage ; then
- sleep 1
- fastboot reboot
- WaitForDevice
- sleep 2
- adb root
+ if [ "$responseSend" == "y" ] ; then
+ WaitForDevice
+ echo Going into fastboot
+ if adb reboot-bootloader ; then
sleep 4
- adb remount
- sleep 2
- echo Sending modules
- for filename in system/modules/* ; do
- echo Sending $filename to /system/modules
- if adb push $filename /system/modules ; then
- echo "Rebooting again"
- adb reboot
- fi
- done
+ echo Pushing kernel file
+ if fastboot flash zimage kernel/zImage ; then
+ sleep 1
+ fastboot reboot
+ WaitForDevice
+ sleep 2
+ adb root
+ sleep 4
+ adb remount
+ sleep 2
+ echo Sending modules
+ for filename in system/modules/* ; do
+ echo Sending $filename to /system/modules
+ if adb push $filename /system/modules ; then
+ echo "Rebooting again"
+ adb reboot
+ fi
+ done
+ fi
fi
fi
cd ..
@@ -151,6 +153,15 @@ build ()
setup
+echo Type y + \"intro\" to send kernel to your mobile:
+read -t 10 responseSend;
+if [ "$responseSend" == "y" ] ; then
+ echo Sending to device after build .. $responseSend
+else
+ echo Only compile .. $responseSend
+fi
+
+
if [ "$1" = clean ] ; then
rm -fr "$BUILD_DIR"/*
exit 0