Skip to content

Commit

Permalink
Add gpt.ini to flashfiles
Browse files Browse the repository at this point in the history
gpt.ini is used to flash android images, add it to
flashfiles to optimize the flash steps

Test done:
make flashfiles
make flashfiles use_tar=true

Tracked-On: OAM-115800
Signed-off-by: Chen, Gang G <[email protected]>
  • Loading branch information
GangSecurity authored and sysopenci committed Mar 1, 2024
1 parent 99d8663 commit 9f5c986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion releasetools/flashfiles_from_target_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ do
else
if [[ $i == "startup.nsh" ]]; then
cp efi/startup.nsh $flashfile_dir/.
elif [[ $i == "gpt.ini" ]]; then
cp obj/PACKAGING/flashfiles_intermediates/root/$i $flashfile_dir/.
else
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/.
Expand Down Expand Up @@ -79,5 +81,5 @@ fi
tar -cvf - -C $flashfile_dir/ . | /usr/bin/pigz > $flashfile

echo "========================"
echo "Flashfiles Tar $PRODUCT_OUT/$flashfile_dir/$flashfile created"
echo "Flashfiles Tar $PRODUCT_OUT/$flashfile created"
echo "========================"

0 comments on commit 9f5c986

Please sign in to comment.