diff options
author | Huang Jianan <huangjianan@oppo.com> | 2021-02-19 16:48:31 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 2bd23cf8487291303978857bd481b676087657e0 (patch) | |
tree | 235a453f41edd60d613f18dd0ee924c19c6b35f5 | |
parent | be590a54563dc741a9d407c8b8921bff26105a71 (diff) |
[master] releasetools: 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>
-rwxr-xr-x | tools/releasetools/build_image.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 086d80ffec..a992ad632d 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -307,6 +307,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]) |