Skip to content

Instantly share code, notes, and snippets.

@dev-harsh1998
Last active October 24, 2023 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dev-harsh1998/5b3c4f72a32f8da0c85251fbec929efa to your computer and use it in GitHub Desktop.
Save dev-harsh1998/5b3c4f72a32f8da0c85251fbec929efa to your computer and use it in GitHub Desktop.
#!/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