From 659084b13cf754eb3cd9107ee61d9eed0f43e8a7 Mon Sep 17 00:00:00 2001 From: sgnanase Date: Wed, 22 Nov 2023 13:51:27 +0530 Subject: [PATCH] Improve compilation speed for android build Ensure system, vbmeta, vendor_boot, odm are copied from target files path instead of product out path Tracked-On: OAM-112083 Signed-off-by: sgnanase --- releasetools/flashfiles_from_target_files.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/releasetools/flashfiles_from_target_files.sh b/releasetools/flashfiles_from_target_files.sh index 67075bb..681b509 100755 --- a/releasetools/flashfiles_from_target_files.sh +++ b/releasetools/flashfiles_from_target_files.sh @@ -55,7 +55,11 @@ do device/intel/build/releasetools/bootloader_from_target_files $PRODUCT_OUT/obj/PACKAGING/target_files_intermediates/$TARGET-target_files-*/ $PRODUCT_OUT/$flashfile_dir/bootloader.img cd - else - cp $i $flashfile_dir/. + if [[ $i == "system.img" || $i == "odm.img" || $i == "vbmeta.img" || $i == "vendor_boot.img" ]]; then + cp obj/PACKAGING/target_files_intermediates/$TARGET-target_files-*/IMAGES/$i $flashfile_dir/. + else + cp $i $flashfile_dir/. + fi fi fi fi