Pass squashfs block size as a parameter
BUG: 28920352 Change-Id: Ifed02bd1565131814047991ec87fa61691bfe240 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
This commit is contained in:
@@ -404,6 +404,8 @@ def BuildImage(in_dir, prop_dict, out_file, target_out=None):
|
||||
build_command.extend(["-z", prop_dict["squashfs_compressor"]])
|
||||
if "squashfs_compressor_opt" in prop_dict:
|
||||
build_command.extend(["-zo", prop_dict["squashfs_compressor_opt"]])
|
||||
if "squashfs_block_size" in prop_dict:
|
||||
build_command.extend(["-b", prop_dict["squashfs_block_size"]])
|
||||
elif fs_type.startswith("f2fs"):
|
||||
build_command = ["mkf2fsuserimg.sh"]
|
||||
build_command.extend([out_file, prop_dict["partition_size"]])
|
||||
@@ -547,6 +549,7 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
|
||||
copy_prop("has_ext4_reserved_blocks", "has_ext4_reserved_blocks")
|
||||
copy_prop("system_squashfs_compressor", "squashfs_compressor")
|
||||
copy_prop("system_squashfs_compressor_opt", "squashfs_compressor_opt")
|
||||
copy_prop("system_squashfs_block_size", "squashfs_block_size")
|
||||
copy_prop("system_base_fs_file", "base_fs_file")
|
||||
elif mount_point == "data":
|
||||
# Copy the generic fs type first, override with specific one if available.
|
||||
@@ -564,6 +567,7 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
|
||||
copy_prop("has_ext4_reserved_blocks", "has_ext4_reserved_blocks")
|
||||
copy_prop("vendor_squashfs_compressor", "squashfs_compressor")
|
||||
copy_prop("vendor_squashfs_compressor_opt", "squashfs_compressor_opt")
|
||||
copy_prop("vendor_squashfs_block_size", "squashfs_block_size")
|
||||
copy_prop("vendor_base_fs_file", "base_fs_file")
|
||||
elif mount_point == "oem":
|
||||
copy_prop("fs_type", "fs_type")
|
||||
|
Reference in New Issue
Block a user