-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbuildkernel.sh
executable file
·23 lines (19 loc) · 1.12 KB
/
buildkernel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#alternative working tc: aarch64-linux-android-4.9-kernel
#alternative working tc: android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9
#alternative working tc: /home/osboxes/toolchains/aarch64-linux-android-4.9_unmodded
#alternative working tc: /home/osboxes/toolchains/aarch64-linux-gnu-5.3/bin
#alternative working tc (best alternative): /home/osboxes/toolchains/ubertc/aarch64-linux-android-4.9-kernel/bin
export ARCH=arm64
export CONFIG_NO_ERROR_ON_MISMATCH=y
export CROSS_COMPILE=aarch64-linux-android-
export PATH=/home/osboxes/toolchains/ubertc/aarch64-linux-android-4.9-kernel/bin:$PATH
#export CONFIG_DEBUG_SECTION_MISMATCH=y
find ./ -name '*~' -o -name '*.bak' | xargs rm;
rm -rf ~/.ccache;
make distclean -w V=0 && make mrproper -w V=0;
echo "Compiling Kernel, using config file $1, this might take long, window will be closed after it is done...";
echo "You will find errors and warnings of kernel compilation in build_errors_warnings.log file.";
rm ./.config;
nice make -w V=0 $1 2> ./build_errors_warnings.log;
make -w -j`grep 'processor' /proc/cpuinfo | wc -l` V=0 2>> ./build_errors_warnings.log;