summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMohamad Ayyash <mkayyash@google.com>2015-06-24 10:44:29 -0700
committerMohamad Ayyash <mkayyash@google.com>2015-06-24 10:44:52 -0700
commitfa6c8a9b7910890cab4e1482c793115501b2bd56 (patch)
tree1c0125b61b6589a7f732d93fd7c1d12e354c1c74 /tools
parent899717ff2ac15357411217d7d568a495a07822ca (diff)
downloadbuild-fa6c8a9b7910890cab4e1482c793115501b2bd56.zip
build-fa6c8a9b7910890cab4e1482c793115501b2bd56.tar.gz
build-fa6c8a9b7910890cab4e1482c793115501b2bd56.tar.bz2
build_image.py: Make sparse squashfs images
Change-Id: Iea0399868a9406f9929d8176d61d5698a2043697 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/releasetools/build_image.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index cbcad6d..6d6219a 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -268,6 +268,7 @@ def BuildImage(in_dir, prop_dict, out_file):
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 "selinux_fc" in prop_dict:
build_command.extend(["-c", prop_dict["selinux_fc"]])