From ee4bad51bc7ff49c37c9a105ad68dddf0a3b0d51 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Tue, 24 Aug 2010 11:18:07 -0700 Subject: [PATCH] Disable CheckSize on ext partitions to fix build [DO NOT MERGE] Original CL: 59920 Change-Id: I81437996670a61e10284293d25a08da8907ad296 --- tools/releasetools/img_from_target_files | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/releasetools/img_from_target_files b/tools/releasetools/img_from_target_files index 98a00fb0b..44bed9c3f 100755 --- a/tools/releasetools/img_from_target_files +++ b/tools/releasetools/img_from_target_files @@ -83,7 +83,8 @@ def AddUserdata(output_zip): 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) @@ -131,7 +132,8 @@ def AddSystem(output_zip): 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)