2011-10-03 15:35:01 +00:00
|
|
|
#!/bin/sh
|
2011-10-03 15:49:08 +00:00
|
|
|
# This script is included in squisher
|
|
|
|
# It is the final build step (after OTA package)
|
2011-10-03 15:35:01 +00:00
|
|
|
|
2011-12-28 14:08:03 +00:00
|
|
|
echo "updater-script: Making MAGLDR Compatible Update script"
|
2011-10-03 15:35:01 +00:00
|
|
|
cd $REPACK/ota/META-INF/com/google/android
|
|
|
|
echo 'mount("yaffs2", "MTD", "boot", "/boot");' >> temp
|
|
|
|
echo 'package_extract_dir("boot", "/boot");' >> temp
|
2011-10-03 19:33:45 +00:00
|
|
|
echo 'unmount("/boot");' >> temp
|
2011-10-03 15:35:01 +00:00
|
|
|
grep -vw assert updater-script >> temp
|
|
|
|
rm -rf updater-script
|
|
|
|
grep -vw boot.img temp > updater-script
|
|
|
|
rm -rf temp
|
|
|
|
|
|
|
|
cd $REPACK/ota
|
2011-10-03 17:46:25 +00:00
|
|
|
echo "Removing: $REPACK/ota/boot.img"
|
2011-10-03 15:35:01 +00:00
|
|
|
rm -rf $REPACK/ota/boot.img
|
2011-10-03 17:46:25 +00:00
|
|
|
echo "Removing: $REPACK/ota/boot"
|
2011-10-03 15:35:01 +00:00
|
|
|
rm -rf $REPACK/ota/boot
|
2011-10-03 15:49:08 +00:00
|
|
|
|
2011-10-03 17:46:25 +00:00
|
|
|
echo "Copying: $OUT/boot ($REPACK/ota/boot)"
|
2011-10-03 15:35:01 +00:00
|
|
|
cp -a $OUT/boot $REPACK/ota/boot
|
|
|
|
|
2011-10-03 17:46:25 +00:00
|
|
|
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
|
2011-10-03 15:35:01 +00:00
|
|
|
fi
|
|
|
|
|