support pre-defined timestamp and uuid when bulid EROFS images
Bug:180682930 Test: erofs image can be set to input timestamp and UUID Change-Id: I71e455350db51096e18ab5a03123500d56ebe252 Signed-off-by: Huang Jianan <huangjianan@oppo.com>
This commit is contained in:
parent
aa85a8871b
commit
1ed889befc
1 changed files with 4 additions and 0 deletions
|
@ -308,6 +308,10 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config):
|
|||
build_command.extend(["-C", fs_config])
|
||||
if "selinux_fc" in prop_dict:
|
||||
build_command.extend(["-c", prop_dict["selinux_fc"]])
|
||||
if "timestamp" in prop_dict:
|
||||
build_command.extend(["-T", str(prop_dict["timestamp"])])
|
||||
if "uuid" in prop_dict:
|
||||
build_command.extend(["-U", prop_dict["uuid"]])
|
||||
elif fs_type.startswith("squash"):
|
||||
build_command = ["mksquashfsimage.sh"]
|
||||
build_command.extend([in_dir, out_file])
|
||||
|
|
Loading…
Reference in a new issue