diff options
author | KalimochoAz <calimochoazucarado@gmail.com> | 2012-02-25 01:55:36 +0100 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2012-02-25 01:55:36 +0100 |
commit | 0ef231500f50a3f9a9d8e282833b9cfc69d5173a (patch) | |
tree | 12f2e14c4af0c22230688568f80af0ac4d1c6c93 /build.sh | |
parent | c2992053ecfdfaece14dca77c6cf290cc8c9d8b7 (diff) | |
download | kernel_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-x | build.sh | 53 |
1 files changed, 32 insertions, 21 deletions
@@ -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 |