update(system): update system squashfs.

This commit is contained in:
kangjun
2024-09-27 16:55:39 +08:00
parent 6015482e43
commit 40efb965ea
16 changed files with 96 additions and 24 deletions

View File

@@ -103,8 +103,8 @@ endef
define Aw/BuildUpgradeImage/resume
#$(1): target_dir #$(2): temp_usr
rm -rf $(1)/usr
mv $(2) $(1)/usr
# rm -rf $(1)/usr
# mv $(2) $(1)/usr
endef
define Aw/BuildUpgradeImage/normal-prepare

View File

@@ -2058,6 +2058,20 @@ function mkrootfs_jffs2()
fi
}
function mkrootfs_erofs()
{
kernelfs_formate=`grep CONFIG_EROFS_FS=y $(gettop)/lichee/*/.config | cut -d ":" -f 2`
echo -e "\033[31m $kernelfs_formate\033[0m"
if [ -z $kernelfs_formate ];then
echo -e "\033[31m run -make kernel_menuconfig- choice "erofs" first!\033[0m"
else
$(gettop)/out/host/bin/mkfs.erofs -zlz4 $(gettop)/out/${TARGET_BOARD}/root.erofs $(gettop)/out/${TARGET_BOARD}/compile_dir/target/rootfs
rm $(gettop)/out/${TARGET_BOARD}/rootfs.img
dd if=$(gettop)/out/${TARGET_BOARD}/root.erofs of=$(gettop)/out/${TARGET_BOARD}/rootfs.img bs=128k conv=sync
fi
}
function recomp_rootfs()
{
T=$(gettop)
@@ -2074,6 +2088,7 @@ function recomp_rootfs()
[ x$file_formate = x"SQUASHFS" ] && mkrootfs_squashfs4
[ x$file_formate = x"EXT4FS" ] && mkrootfs_ext4
[ x$file_formate = x"JFFS2" ] && mkrootfs_jffs2
[ x$file_formate = x"EROFS" ] && mkrootfs_erofs
fi
}