release.sh: Fix absolute paths to match new environment

This commit is contained in:
Hannes Ylä-Jääski 2022-02-18 15:43:02 +02:00
parent 6f57727285
commit 6f178c57f3

View File

@ -2,16 +2,16 @@
export ARCH=arm64
export SUBARCH=arm64
if [ -f /home/drgreen/android/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image ]; then
cp /home/drgreen/android/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /home/drgreen/android/AIK-Linux/split_img/boot.img-kernel
cd /home/drgreen/android/AIK-Linux/
sh /home/drgreen/android/AIK-Linux/repackimg.sh
mv /home/drgreen/android/AIK-Linux/image-new.img /home/drgreen/release/handelinkernel_vxx_nomagisk.img
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
# Anykernel
cp /home/drgreen/android/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /home/drgreen/android/AnyKernel3/Image
cd /home/drgreen/android/AnyKernel3/
cp /work/kernel/android_kernel_oneplus_sm8250/out/arch/arm64/boot/Image /work/kernel/AnyKernel3/Image
cd /work/kernel/AnyKernel3/
zip -r9 handelinkernel_vxx_anykernel.zip * -x .git README.md *placeholder
mv handelinkernel_vxx_anykernel.zip /home/drgreen/release/handelinkernel_vxx_anykernel.zip
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."