Skip to content

Commit

Permalink
Separate GPT table as read-only and read-write
Browse files Browse the repository at this point in the history
These partition tables will be used in android flash
if android image is devided into read-only image
and read-write image

Test Done:
make flashfiles to generate gpt_ro.bin gpt_rw.bin
and gpt_rw_nolic.bin
Flash these gpt tables to device through fastboot
and boot success

Tracked-On: OAM-124748
Signed-off-by: Chen, Gang G <[email protected]>
  • Loading branch information
GangSecurity committed Sep 23, 2024
1 parent 5e99d5b commit e1973df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions releasetools/flashfiles_from_target_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "========================"
echo "Images / Files to be packed"
echo "========================"
IMAGES_TUPLE=`./device/intel/build/releasetools/flash_cmd_generator.py device/intel/project-celadon/$TARGET/flashfiles.ini $TARGET $VARIANT | tail -1`
c=-2
c=0
for i in $IMAGES_TUPLE
do
if [[ $c -gt 0 && `expr $c % 2` == 1 ]]; then
Expand Down Expand Up @@ -62,7 +62,7 @@ do
else
if [[ $i == "startup.nsh" ]]; then
cp efi/startup.nsh $flashfile_dir/.
elif [[ $i == "gpt.ini" ]]; then
elif [[ $i == "gpt.ini" || $i == "gpt_ro.bin" || $i == "gpt_rw.bin" || $i == "gpt_rw_nolic.bin" ]]; then
cp obj/PACKAGING/flashfiles_intermediates/root/$i $flashfile_dir/.
else
if [[ $i == "boot.img" || $i == "odm.img" || $i == "vbmeta.img" || $i == "vendor_boot.img" ]]; then
Expand Down

0 comments on commit e1973df

Please sign in to comment.