fixed the squisher script with the test case, and made echo statements for what the script is doing
This commit is contained in:
parent
975afea5f8
commit
a63180a8a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user