OSDN Git Service

arg: system_size, not system_img
authorDoug Zongker <dougz@android.com>
Wed, 22 Sep 2010 00:22:14 +0000 (17:22 -0700)
committerDoug Zongker <dougz@android.com>
Wed, 22 Sep 2010 00:22:14 +0000 (17:22 -0700)
Change-Id: Iba5d10204c93159a4f12ea8e8d8687db5b9dd5ca

tools/releasetools/img_from_target_files

index 2a0e4cc..871e295 100755 (executable)
@@ -113,7 +113,7 @@ def AddSystem(output_zip):
     build_command = ["mkuserimg.sh",
                      os.path.join(OPTIONS.input_tmp, "system"), img.name,
                      OPTIONS.info_dict["fstab"]["/system"].fs_type, "system"]
-    if "system_img" in OPTIONS.info_dict:
+    if "system_size" in OPTIONS.info_dict:
       build_command.append(str(OPTIONS.info_dict["system_size"]))
   else:
     build_command = ["mkyaffs2image", "-f"]