Skip to content

Commit

Permalink
implement dtbo.img
Browse files Browse the repository at this point in the history
  • Loading branch information
nullptr03 committed Sep 3, 2024
1 parent 091fd5b commit ca713f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca713f8

Please sign in to comment.