Last active
October 24, 2023 01:01
-
-
Save dev-harsh1998/5b3c4f72a32f8da0c85251fbec929efa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Time and stuff | |
export TZ="Asia/Kolkata" | |
export KBUILD_BUILD_USER="dev-harsh1998" | |
export KBUILD_BUILD_HOST="Phantomizer" | |
# CCACHE setup | |
export CCACHE_EXEC=$(which ccache) | |
export USE_CCACHE=1 | |
export CCACHE_DIR=$HOME/.ccache | |
$CCACHE_EXEC -M 50G | |
source build/envsetup.sh | |
lunch lineage_nabu-user | |
# Clean the kernel directory just in case before startig the compilation | |
cd kernel/xiaomi/nabu && make ARCH=arm64 mrproper && cd ../../../ | |
mka j16 clean && mka -j16 clobber && rm -rf out | |
# Bake it (fastbootd package) | |
# mka updatepackage | |
# Bake it (recovery package) | |
mka -j16 bacon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment