From b0498d44d7a939737c7c7274774c29d081286309 Mon Sep 17 00:00:00 2001 From: Jackeagle Date: Thu, 11 May 2023 04:53:35 -0400 Subject: [PATCH] build.sh: Add boot.img required for some recovery to bootup - There are devices that just use recovery.img and boot perfectly fine - There are also devices that require boot.img along with vendor_boot.img to boot - In whole lets just add boot.img just like how lineage does so that if any devices require it can easily be used :) Signed-off-by: Jackeagle --- src/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/build.sh b/src/build.sh index 738ff97..ca2ee1c 100755 --- a/src/build.sh +++ b/src/build.sh @@ -325,18 +325,22 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then if [ "$RECOVERY_IMG" = true ]; then RECOVERY_IMG_NAME="recovery-${build%.*}.img" + BOOT_IMG_NAME="boot-${build%.*}.img" DTBO_IMG_NAME="dtbo-${build%.*}.img" SUPER_EMPTY_IMG_NAME="super_empty-${build%.*}.img" VBMETA_IMG_NAME="vbmeta-${build%.*}.img" VENDOR_BOOT_IMG_NAME="vendor_boot-${build%.*}.img" if [ "$RECOVERY_NEEDS_SUPPORT_IMG" = true ]; then + cp -a obj/PACKAGING/target_files_intermediates/lineage_*/IMAGES/boot.img "$BOOT_IMG_NAME" cp -a obj/PACKAGING/target_files_intermediates/lineage_*/IMAGES/dtbo.img "$DTBO_IMG_NAME" cp -a obj/PACKAGING/target_files_intermediates/lineage_*/IMAGES/super_empty.img "$SUPER_EMPTY_IMG_NAME" cp -a obj/PACKAGING/target_files_intermediates/lineage_*/IMAGES/vbmeta.img "$VBMETA_IMG_NAME" + sha256sum "$BOOT_IMG_NAME" > "$BOOT_IMG_NAME.sha256sum" sha256sum "$DTBO_IMG_NAME" > "$DTBO_IMG_NAME.sha256sum" sha256sum "$SUPER_EMPTY_IMG_NAME" > "$SUPER_EMPTY_IMG_NAME.sha256sum" sha256sum "$VBMETA_IMG_NAME" > "$VBMETA_IMG_NAME.sha256sum" + mv "$BOOT_IMG_NAME"* "$ZIP_DIR/$zipsubdir/" mv "$DTBO_IMG_NAME"* "$ZIP_DIR/$zipsubdir/" mv "$SUPER_EMPTY_IMG_NAME"* "$ZIP_DIR/$zipsubdir/" mv "$VBMETA_IMG_NAME"* "$ZIP_DIR/$zipsubdir/" -- GitLab