2
2
echo " Cloning dependencies"
3
3
git clone --depth=1 https://github.com/dracarys18/NotKernel kernel
4
4
cd kernel
5
- git clone -q -j32 https://github. com/dracarys18/toolchain.git
6
- git clone -q -j32 https://github. com/dracarys18/toolchain32.git
5
+ git clone --depth=1 https://android.googlesource. com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b android-9.0.0_r39 toolchain
6
+ git clone --depth=1 https://android.googlesource. com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 -b android-9.0.0_r39 toolchain32
7
7
git clone --depth=1 https://github.com/dracarys18/AnyKernel3.git Anykernel
8
8
echo " Done"
9
9
GCC=" $( pwd) /aarch64-linux-android-"
@@ -13,6 +13,7 @@ START=$(date +"%s")
13
13
export CONFIG_PATH=$PWD /arch/arm64/configs/mido_defconfig
14
14
PATH=" ${PWD} /toolchain/bin:${PWD} /toolchain32/bin:${PATH} "
15
15
export CROSS_COMPILE_ARM32=" $( pwd) /toolchain32/bin/arm-linux-androideabi-"
16
+ export CROSS_COMPILE=" aarch64-linux-android-"
16
17
export ARCH=arm64
17
18
export KBUILD_BUILD_HOST=NotKernel
18
19
export KBUILD_BUILD_USER=" root"
@@ -32,7 +33,7 @@ function sendinfo() {
32
33
}
33
34
# Push kernel to channel
34
35
function push() {
35
- cd AnyKernel
36
+ cd Anykernel
36
37
ZIP=$( echo * .zip)
37
38
curl -F document=@$ZIP " https://api.telegram.org/bot$token /sendDocument" \
38
39
-F chat_id=" $chat_id " \
@@ -46,23 +47,27 @@ function finerr() {
46
47
-d chat_id=" $chat_id " \
47
48
-d " disable_web_page_preview=true" \
48
49
-d " parse_mode=markdown" \
49
- -d text=" Build throw an error(s)"
50
+ -d text=" Build is throwing error(s)"
50
51
exit 1
51
52
}
52
53
# Compile plox
53
54
function compile() {
54
55
make O=out clean && make O=out mrproper && make O=out mido_defconfig
55
56
make O=out -j$( nproc --all) 2>&1 | tee build.log
56
- cp out/arch/arm64/boot/Image.gz-dtb AnyKernel/zImage
57
+ if ! [ -a $IMAGE ]; then
58
+ finerr
59
+ exit 1
60
+ else
61
+ cp $PWD /out/arch/arm64/boot/Image.gz-dtb $PWD /Anykernel/zImage
62
+ fi
57
63
}
58
64
59
65
# Zipping
60
66
function zipping() {
61
- cd AnyKernel || exit 1
67
+ cd Anykernel || exit 1
62
68
zip -r9 NotKernel-Mido-${TANGGAL} .zip *
63
69
cd ..
64
70
}
65
- sticker
66
71
sendinfo
67
72
compile
68
73
zipping
0 commit comments