From fa6c8a9b7910890cab4e1482c793115501b2bd56 Mon Sep 17 00:00:00 2001 From: Mohamad Ayyash Date: Wed, 24 Jun 2015 10:44:29 -0700 Subject: [PATCH] build_image.py: Make sparse squashfs images Change-Id: Iea0399868a9406f9929d8176d61d5698a2043697 Signed-off-by: Mohamad Ayyash --- tools/releasetools/build_image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index cbcad6d06..6d6219a15 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"]])