From ca713f8ec67131c1936ee6ec9db898863c848119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andy=20=7C=20=E3=82=A2=E3=83=B3=E3=83=87=E3=82=A3?= <54360298+nullptr03@users.noreply.github.com> Date: Tue, 3 Sep 2024 21:25:59 +0800 Subject: [PATCH] implement dtbo.img --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index 6e4dedd..f95ad1f 100644 --- a/build.sh +++ b/build.sh @@ -159,6 +159,7 @@ export KBUILD_BUILD_HOST="SingkoLab" export KERNEL_NAME="SingkoKernel" export SUBLEVEL="v5.4.$(cat "${MainPath}/Makefile" | grep "SUBLEVEL =" | sed 's/SUBLEVEL = *//g')" IMAGE="${MainPath}/out/arch/arm64/boot/Image" +DTBO_IMAGE="${MainPath}/out/arch/arm64/boot/dtbo.img" CORES="$(nproc --all)" BRANCH="$(git rev-parse --abbrev-ref HEAD)" @@ -190,6 +191,9 @@ make -j"$CORES" ARCH=$ARCH O=out \ cd ${MainPath} git clone --depth=1 ${AnyKernelRepo} -b ${AnyKernelBranch} ${AnyKernelPath} cp $IMAGE ${AnyKernelPath} + if [[ -f "$DTBO_IMAGE" ]]; then + cp $DTBO_IMAGE ${AnyKernelPath} + fi else echo "❌ Compile Kernel for $DEVICE_CODENAME failed, Check console log to fix it!" if [ "$CLEANUP" = "yes" ];then