repo init -u https://github.com/StatiXOS/android_kernel_manifest.git -b android-msm-xiaomi-4.19-android11
repo sync --force-sync --no-clone-bundle --current-branch --no-tags -j$(nproc --all)
Rename DEVICE_NAME
with the appropriate device codename
For Clang builds
BUILD_CONFIG=build.config.xiaomi.${DEVICE_NAME} BUILD_KERNEL=1 build/build.sh
For GCC builds
BUILD_CONFIG=build.config.xiaomi.${DEVICE_NAME} COMPILER=gcc BUILD_KERNEL=1 build/build.sh
Example:
For alioth with GCC
BUILD_CONFIG=build.config.xiaomi.alioth COMPILER=gcc BUILD_KERNEL=1 build/build.sh
Please refer to this for submitting patches: https://github.com/StatiXOS/android_manifest#submitting-patches