Disable CheckSize on ext partitions to fix build
Change-Id: I66c67f8bbd84eb9da988b4079ad4c36089c1c930
diff --git a/tools/releasetools/img_from_target_files b/tools/releasetools/img_from_target_files
index c0d27da..d180998 100755
--- a/tools/releasetools/img_from_target_files
+++ b/tools/releasetools/img_from_target_files
@@ -84,7 +84,8 @@
p.communicate()
assert p.returncode == 0, "build userdata.img image failed"
- common.CheckSize(img.name, "userdata.img")
+ if USERIMAGE_OPTIONS.fs_type is None or not USERIMAGE_OPTIONS.fs_type.startswith("ext"):
+ common.CheckSize(img.name, "userdata.img")
output_zip.write(img.name, "userdata.img")
img.close()
os.rmdir(user_dir)
@@ -132,7 +133,8 @@
data = img.read()
img.close()
- common.CheckSize(data, "system.img")
+ if USERIMAGE_OPTIONS.fs_type is None or not USERIMAGE_OPTIONS.fs_type.startswith("ext"):
+ common.CheckSize(data, "system.img")
common.ZipWriteStr(output_zip, "system.img", data)