Download the source
Please read the AOSP building instructions before proceeding.
repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr1
Run the following to sync the source
Download the kernel source
Integrated kernel building is now required to compile AOKP for all supported devices (even Nexus devices!)
From the root of your source tree, run the following script to grab the kernel sources required
Then run another
Since the kernel trees are fairly large, you may want to sync only specific kernel trees for devices you build for, take a look at the file
.repo/local_manifests/kernel_manifest.xml. You can edit this file to suite your needs.
After the sync is finished, please read the instructions from the Android site on how to build.
. build/envsetup.sh brunch
You can also build (and see how long it took) for specific devices like this:
. build/envsetup.sh time brunch aokp_mako-userdebug
make clobber every now and then!