diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2021-06-25 18:23:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-06-25 18:23:58 +0000 |
commit | cba3ec7818793f2edc5bd1ce8693942292a379fa (patch) | |
tree | b57ae724708042d4c17b8a67eed85055789c3b46 | |
parent | e4debbf1369bdc3adfb74aa2275ce2e4d2079f5f (diff) | |
parent | 3dc47280e2863f5ae3ed1cc41f3a36583ce7b082 (diff) | |
download | build-cba3ec7818793f2edc5bd1ce8693942292a379fa.tar.gz |
Merge "Support block_list and readonly for f2fs"
-rwxr-xr-x | tools/releasetools/build_image.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 8eec4b505c..f2ba3219f4 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -353,6 +353,8 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config): build_command.extend(["-t", prop_dict["mount_point"]]) if "timestamp" in prop_dict: build_command.extend(["-T", str(prop_dict["timestamp"])]) + if "block_list" in prop_dict: + build_command.extend(["-B", prop_dict["block_list"]]) build_command.extend(["-L", prop_dict["mount_point"]]) if (needs_projid): build_command.append("--prjquota") @@ -360,8 +362,9 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config): build_command.append("--casefold") if (needs_compress or prop_dict.get("f2fs_compress") == "true"): build_command.append("--compression") - if (prop_dict.get("f2fs_compress") == "true"): + if (prop_dict.get("mount_point") != "data"): build_command.append("--readonly") + if (prop_dict.get("f2fs_compress") == "true"): build_command.append("--sldc") if (prop_dict.get("f2fs_sldc_flags") == None): build_command.append(str(0)) |