Skip to content

Commit

Permalink
Improve compilation speed for android build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sgnanase authored and swaroopbalan committed Nov 22, 2023
1 parent b4431b6 commit 659084b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion releasetools/flashfiles_from_target_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 659084b

Please sign in to comment.