Use --add_missing in merge_target_files.py

This is needed when including prebuilt images that do not need to be
regenerated. Otherwise the script will exit upon detecting an existing
IMAGES/ directory.

Test: test_merge_target_files
Bug: 139111475
Change-Id: I55d82bd7dc4fa5f27bc01e481362e79fecc200ff
This commit is contained in:
Paul Trautrim 2019-08-13 18:07:03 +09:00
parent ba6135bd80
commit bc3600c030

View file

@ -781,6 +781,7 @@ def generate_images(target_files_dir, rebuild_recovery):
# Regenerate IMAGES in the target directory.
add_img_args = ['--verbose']
add_img_args.append('--add_missing')
if rebuild_recovery:
add_img_args.append('--rebuild_recovery')
add_img_args.append(target_files_dir)