build system: build.sh tweaks and release.sh

This commit is contained in:
Hannes Ylä-Jääski 2021-05-17 12:19:19 +03:00
parent c2b6ec9a27
commit 8df0b78a12
3 changed files with 18 additions and 1 deletions

View File

@ -2,6 +2,7 @@
export ARCH=arm64
export SUBARCH=arm64
echo "Starting to build.."
make O=out ARCH=arm64 handeli_defconfig
PATH=/home/drgreen/android/clang-r407598b/bin:/home/drgreen/:/home/drgreen/android/toolchain/bin:${PATH} make -j$(nproc --all) O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android-
echo "Build done."

View File

@ -1,4 +1,7 @@
#!/bin/sh
export ARCH=arm64
export SUBARCH=arm64
echo "Starting to clean.."
make O=out ARCH=arm64 clean
echo "Clean done."

13
release.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
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-zImage
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
echo "Image created and released."
else
echo "No kernel image in output folder. Build first."
fi