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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user