AK3: add vendor_ramdisk support to simple vendor_boot support
- use vendor_ramdisk and vendor_patch directories in zip root to specify changes for vendor_boot flash
This commit is contained in:
1 file changed
+6
-4
+6
-4
@@ -706,14 +706,16 @@ setup_ak() {
|
||||
;;
|
||||
esac;
|
||||
|
||||
# automate multi-partition setup for boot_img_hdr_v3 + vendor_boot
|
||||
# automate simple multi-partition setup for boot_img_hdr_v3 + vendor_boot
|
||||
cd $home;
|
||||
if [ -e "/dev/block/bootdevice/by-name/vendor_boot$slot" -a -f dtb -a ! -f vndr_setup ]; then
|
||||
if [ -e "/dev/block/bootdevice/by-name/vendor_boot$slot" -a ! -f vendor_setup ] && [ -f dtb -o -d vendor_ramdisk -o -d vendor_patch ]; then
|
||||
mkdir boot-files;
|
||||
mv -f Image* ramdisk patch boot-files;
|
||||
mkdir vendor_boot-files;
|
||||
mv -f dtb vendor_boot-files;
|
||||
touch vndr_setup;
|
||||
mv -f vendor_ramdisk vendor_boot-files/ramdisk;
|
||||
mv -f vendor_patch vendor_boot-files/patch;
|
||||
touch vendor_setup;
|
||||
fi;
|
||||
|
||||
# allow multi-partition ramdisk modifying configurations (using reset_ak)
|
||||
@@ -722,7 +724,7 @@ setup_ak() {
|
||||
if [ "$(ls $blockfiles 2>/dev/null)" ]; then
|
||||
cp -af $blockfiles/* $home;
|
||||
else
|
||||
mkdir -p $blockfiles;
|
||||
mkdir $blockfiles;
|
||||
fi;
|
||||
touch $blockfiles/current;
|
||||
fi;
|
||||
|
||||
Reference in new issue
Block a user