Override properties that point to out/ directory.

A few properties are stored as links to the files in the out/
directory, which are no longer available when (re)packing from
target_files zip. Redirect those properties to the actual files in
the unzipped directory when repacking.

Change-Id: I18e930cbea224ab9c6db8d4e721b1c266a671db6
This commit is contained in:
Tao Bao
2015-07-19 02:38:53 -07:00
parent 03e74d66c7
commit 84e7568b1f
3 changed files with 19 additions and 11 deletions

View File

@@ -135,10 +135,6 @@ def CreateImage(input_dir, info_dict, what, block_list=None):
image_props["fs_config"] = fs_config
if block_list:
image_props["block_list"] = block_list
if image_props.get("system_root_image") == "true":
image_props["ramdisk_dir"] = os.path.join(input_dir, "BOOT/RAMDISK")
image_props["ramdisk_fs_config"] = os.path.join(
input_dir, "META/boot_filesystem_config.txt")
succ = build_image.BuildImage(os.path.join(input_dir, what),
image_props, img)