Skip to content

Commit

Permalink
download_gki: Unpack boot.img for Image.lz4
Browse files Browse the repository at this point in the history
Presubmit testing requires Image.lz4, which can be obtained by running
unpack_bootimg.py on the boot.img prebuilt.

This commit also fixes a small typo in git commit generation.

Bug: 191764119
Signed-off-by: J. Avila <[email protected]>
Change-Id: I2cd833bfc46486ae16ddf91dc3b198a965e92b3c
  • Loading branch information
J. Avila authored and Petri Gynther committed Jul 2, 2021
1 parent 5a7fabf commit 685cf4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions download_gki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,19 @@ cd ${GKI_PREBUILTS_DIR}
if [ -n "${BOOT_IMG_NAME}" -a -f "${BOOT_IMG_NAME}" ]; then
echo "Renaming ${BOOT_IMG_NAME} to boot.img for convenience."
mv ${BOOT_IMG_NAME} boot.img
echo "Unpacking boot.img and retrieving Image.lz4."
${CUR_DIR}/tools/mkbootimg/unpack_bootimg.py --boot_img boot.img \
--out ${TEMP_DIR}/boot_img_unpacked/
exit_and_clean_if_error $? "Unable to unpack boot.img"
mv ${TEMP_DIR}/boot_img_unpacked/kernel ./Image.lz4
fi
echo "Update the GKI binaries to ab/${GKI_BUILD}
Update the GKI binaries based on the given build. The prebuilts now have
the following SHA, taken from the ${SHA_FILE} banner: ${PREBUILTS_SHA}
" > ${TEMP_DIR}\commit_body
" > ${TEMP_DIR}/commit_body
git add *
git commit -s -F ${TEMP_DIR}\commit_body
git commit -s -F ${TEMP_DIR}/commit_body

cd ${CUR_DIR}
rm -rf ${TEMP_DIR}
Expand Down

0 comments on commit 685cf4d

Please sign in to comment.