Enviroment Setup
Features of kernel
Install the following packages if you are using Ubuntu/Debian
sudo apt-get install git ccache automake flex lzop bison \
build-essential zip curl make libssl-dev bc libc6 unzip
Install the following packages if you are using Arch/Garuda/Manjaro
sudo pacman -Sy base-devel bc ccache curl git zip --noconfirm
Export architecture
export ARCH=arm64
export SUBARCH=arm64
Export KBUILD_BUILD_USER and KBUILD_BUILD_HOST as well as KBUILD_JOBS(No. of threads to use.)
export KBUILD_BUILD_USER="theradcolor"
export KBUILD_BUILD_HOST="garuda"
export KBUILD_JOBS="$(($(grep -c '^processor' /proc/cpuinfo)))"
Export KBUILD_COMPILER_STRING(compiler string/name)
# For Clang
export COMPILER_STRING="$(${COMPILER_PATH}/bin/clang --version | head -n 1 | perl -pe 's/\(http.*?\)//gs' | sed -e 's/ */ /g' | sed 's/ *$//')"
# For GCC
export COMPILER_STRING="$((${COMPILER_PATH}/bin/bin/aarch64-linux-gnu-gcc" --version | head -n 1)"