Commit 3f3cde16 authored by fuyanbin's avatar fuyanbin
Browse files

rockchip 的super文件名是 super.img

parent a169eecc
......@@ -141,8 +141,6 @@ resize_system_image() {
__unpack_super_img() {
local system_partition_name="$1"
super_file="$update_img_tmp_dir/update.img.dump/super.fex"
super_file_ext4="$update_img_tmp_dir/update.img.dump/super.fex.ext4"
if file "$super_file" | grep "Android sparse image"
then
......@@ -184,6 +182,8 @@ unpack_and_mount_image() {
imgrepacker /skip "$update_img_tmp_dir/update.img"
rm -f "$update_img_tmp_dir/update.img"
super_file="$update_img_tmp_dir/update.img.dump/super.fex"
super_file_ext4="$update_img_tmp_dir/update.img.dump/super.fex.ext4"
__unpack_super_img "$ALLWINNER_DEFAULT_SYSTEM_PARTITION_NAME"
else
echo "Rockchip Format Detected.."
......@@ -196,6 +196,8 @@ unpack_and_mount_image() {
rm -f "$update_img_tmp_dir/update.img.dump/firmware.img"
rm -f "$update_img_tmp_dir/update.img.dump/boot.bin"
super_file="$update_img_tmp_dir/update.img.dump/super.img"
super_file_ext4="$update_img_tmp_dir/update.img.dump/super.img.ext4"
__unpack_super_img "$ROCKCHIP_DEFAULT_SYSTEM_PARTITION_NAME"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment