Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa05fc7f authored by David Anderson's avatar David Anderson Committed by Automerger Merge Worker
Browse files

Merge "Add blocklist support for EROFS." am: fce20c24 am: 8e160622 am:...

Merge "Add blocklist support for EROFS." am: fce20c24 am: 8e160622 am: bf5fa4b0 am: 152428b1 am: 29c06288

Original change: https://android-review.googlesource.com/c/platform/build/+/1851041

Change-Id: Id3eec98baba5c7def750a10466e97c1c3b67efae
parents 304b40fd 29c06288
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -330,10 +330,6 @@ 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"]])
    compressor = None
    if "erofs_default_compressor" in prop_dict:
      compressor = prop_dict["erofs_default_compressor"]
@@ -341,6 +337,12 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config):
      compressor = prop_dict["erofs_compressor"]
    if compressor:
      build_command.extend(["-z", compressor])
    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"]])
    if "block_list" in prop_dict:
      build_command.extend(["-B", prop_dict["block_list"]])
  elif fs_type.startswith("squash"):
    build_command = ["mksquashfsimage.sh"]
    build_command.extend([in_dir, out_file])