Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit ca713f8

Browse files
committed
implement dtbo.img
1 parent 091fd5b commit ca713f8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export KBUILD_BUILD_HOST="SingkoLab"
159159
export KERNEL_NAME="SingkoKernel"
160160
export SUBLEVEL="v5.4.$(cat "${MainPath}/Makefile" | grep "SUBLEVEL =" | sed 's/SUBLEVEL = *//g')"
161161
IMAGE="${MainPath}/out/arch/arm64/boot/Image"
162+
DTBO_IMAGE="${MainPath}/out/arch/arm64/boot/dtbo.img"
162163
CORES="$(nproc --all)"
163164
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
164165

@@ -190,6 +191,9 @@ make -j"$CORES" ARCH=$ARCH O=out \
190191
cd ${MainPath}
191192
git clone --depth=1 ${AnyKernelRepo} -b ${AnyKernelBranch} ${AnyKernelPath}
192193
cp $IMAGE ${AnyKernelPath}
194+
if [[ -f "$DTBO_IMAGE" ]]; then
195+
cp $DTBO_IMAGE ${AnyKernelPath}
196+
fi
193197
else
194198
echo "❌ Compile Kernel for $DEVICE_CODENAME failed, Check console log to fix it!"
195199
if [ "$CLEANUP" = "yes" ];then

0 commit comments

Comments
 (0)