qcom-abl: use mkbootimg package to generate abl boot image

This commit is contained in:
amazingfate
2023-10-25 10:10:15 +08:00
committed by Jianfeng Liu
parent d6deabaf06
commit ac90826105
4 changed files with 3 additions and 680 deletions

View File

@@ -28,7 +28,7 @@ function post_build_image__900_convert_to_abl_img() {
for dtb_name in "${ABL_DTB_LIST[@]}"; do
display_alert "Creatng abl kernel boot image with dtb ${dtb_name}" "${EXTENSION}" "info"
cat ${DESTIMG}/Image.gz ${new_rootfs_image_mount_dir}/usr/lib/linux-image-*/qcom/${dtb_name}.dtb > ${DESTIMG}/Image.gz-${dtb_name}
${new_rootfs_image_mount_dir}/usr/local/bin/mkbootimg.py \
${new_rootfs_image_mount_dir}/usr/bin/mkbootimg \
--kernel ${DESTIMG}/Image.gz-${dtb_name} \
--ramdisk ${new_rootfs_image_mount_dir}/boot/initrd.img-*-* \
--base 0x0 \