From a63180a8a39c7cacd90c94931d774f4e758f2502 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 3 Oct 2011 18:46:25 +0100 Subject: [PATCH] fixed the squisher script with the test case, and made echo statements for what the script is doing --- releasetools/squisher.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/releasetools/squisher.sh b/releasetools/squisher.sh index fc2c8b6..9dc8774 100755 --- a/releasetools/squisher.sh +++ b/releasetools/squisher.sh @@ -2,25 +2,27 @@ # This script is included in squisher # It is the final build step (after OTA package) -echo "Making Leo Compatible Update script" +echo "updater-script: Making Compatible Update script" cd $REPACK/ota/META-INF/com/google/android echo 'mount("yaffs2", "MTD", "boot", "/boot");' >> temp echo 'package_extract_dir("boot", "/boot");' >> temp +echo 'umount("/boot");' >> temp grep -vw assert updater-script >> temp rm -rf updater-script grep -vw boot.img temp > updater-script rm -rf temp -echo "Removing boot.img" cd $REPACK/ota +echo "Removing: $REPACK/ota/boot.img" rm -rf $REPACK/ota/boot.img +echo "Removing: $REPACK/ota/boot" rm -rf $REPACK/ota/boot -echo "Adding boot folder" +echo "Copying: $OUT/boot ($REPACK/ota/boot)" cp -a $OUT/boot $REPACK/ota/boot -if [[ ! -e $OUT/temp/boot/initrd.gz ]] ; then - cp -a $OUT/ramdisk.img $OUT/temp/boot/initrd.gz +if [ ! -e $REPACK/ota/boot/initrd.gz ] ; then + echo "Copying: $OUT/ramdisk.img ($REPACK/ota/boot/initrd.gz)" + cp -a $OUT/ramdisk.img $REPACK/ota/boot/initrd.gz fi -exit 0