android_kernel_oneplus_sm8250/release.sh

19 lines
820 B
Bash
Raw Permalink Normal View History

#!/bin/sh
export ARCH=arm64
export SUBARCH=arm64
if [ -f /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image ]; then
cp /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /work/kernel/AIK-Linux/split_img/boot.img-kernel
cd /work/kernel/AIK-Linux/
sh /work/kernel/AIK-Linux/repackimg.sh
mv /work/kernel/AIK-Linux/image-new.img /work/release/handelinkernel_vxx_nomagisk.img
2022-02-13 22:16:43 +02:00
# Anykernel
cp /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /work/kernel/AnyKernel3/Image
cd /work/kernel/AnyKernel3/
2022-02-13 22:16:43 +02:00
zip -r9 handelinkernel_vxx_anykernel.zip * -x .git README.md *placeholder
mv handelinkernel_vxx_anykernel.zip /work/release/handelinkernel_vxx_anykernel.zip
echo "Image created and released."
else
echo "No kernel image in output folder. Build first."
fi