CodeLinaro based Neoteric OS is a minimal custom Android ROM focused on UI/UX and performance, with a touch of security, privacy and minimal set of features.
First, make sure you have an Android build environment and the repo tool set up. After that, run the following commands:
Initialize local repository:
repo init -u https://github.com/Neoteric-OS/android_manifest -b bka
Alternateively, shallow clone everything to save a lot of space,
repo init --depth=1 -u https://github.com/Neoteric-OS/android_manifest -b bka
If you are a maintainer you need to use:
repo init -u https://github.com/Neoteric-OS/android_manifest -g all -b bka
Or to save space just as above :
repo init --depth=1 -u https://github.com/Neoteric-OS/android_manifest -g all -b bka
Then sync:
repo sync
Or to save time and space (Not Infinity Stones),
repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
This is a large download that will take approximately 100 GB of disk space, so plan accordingly.
You will need to create a device tree to build this ROM for your device. Make your own you lazy twat.
Good luck!