build system: build.sh tweaks and release.sh
This commit is contained in:
parent
c2b6ec9a27
commit
8df0b78a12
3
build.sh
3
build.sh
@ -2,6 +2,7 @@
|
|||||||
export ARCH=arm64
|
export ARCH=arm64
|
||||||
export SUBARCH=arm64
|
export SUBARCH=arm64
|
||||||
|
|
||||||
|
echo "Starting to build.."
|
||||||
make O=out ARCH=arm64 handeli_defconfig
|
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-
|
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."
|
||||||
|
3
clean.sh
3
clean.sh
@ -1,4 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export ARCH=arm64
|
export ARCH=arm64
|
||||||
export SUBARCH=arm64
|
export SUBARCH=arm64
|
||||||
|
|
||||||
|
echo "Starting to clean.."
|
||||||
make O=out ARCH=arm64 clean
|
make O=out ARCH=arm64 clean
|
||||||
|
echo "Clean done."
|
||||||
|
13
release.sh
Executable file
13
release.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user