OSDN Git Service

am 648e40e8: build_image.py: Make sparse squashfs images
authorMohamad Ayyash <mkayyash@google.com>
Wed, 24 Jun 2015 22:52:10 +0000 (22:52 +0000)
committerAndroid Git Automerger <android-git-automerger@android.com>
Wed, 24 Jun 2015 22:52:10 +0000 (22:52 +0000)
* commit '648e40e8660135f37adad5981a48250476c2f3fd':
  build_image.py: Make sparse squashfs images

1  2 
tools/releasetools/build_image.py

@@@ -268,8 -255,11 +268,9 @@@ def BuildImage(in_dir, prop_dict, out_f
    elif fs_type.startswith("squash"):
      build_command = ["mksquashfsimage.sh"]
      build_command.extend([in_dir, out_file])
+     build_command.extend(["-s"])
      build_command.extend(["-m", prop_dict["mount_point"]])
 -    if fc_config is not None:
 -      build_command.extend(["-c", fc_config])
 -    elif "selinux_fc" in prop_dict:
 +    if "selinux_fc" in prop_dict:
        build_command.extend(["-c", prop_dict["selinux_fc"]])
      if "squashfs_compressor" in prop_dict:
        build_command.extend(["-z", prop_dict["squashfs_compressor"]])