Requirements:

A fast desktop CPU, (or a very fast mobile CPU, better use a PC)

Enough RAM, (8 - 16 GB)

A up to date Linux, (I use Ubuntu 14.04, works with other distros, too, but maybe you have to make some changes to the commands)

A working Build Environment, (here is a guide how to set up a Build Environment on Ubuntu)

(needed steps till "Identify Yourself to the Repo")

Create working directory and init repo:

Code: mkdir ~/Android/Darkkat

Code: cd ~/Android/Darkkat

Code: repo init -u git://github.com/XXMrHyde/android.git -b darkkat-5.1

Sync the repo:

Code: cd ~/Android/Darkkat && repo sync

Setting up ccache, (optional):

first build/without ccache:

about 45 - 55 minutes

about 45 - 55 minutes following builds, with ccache:

about 10 - 17 minutes

Code: gedit .bashrc

Code: export USE_CCACHE=1

Code: export CCACHE_DIR=<path-to-your-cache-directory>

Code: ~/Android/Darkkat/prebuilts/misc/linux-x86/ccache/ccache -M 50G

Build the rom:

Code: cd ~/Android/Darkkat && . build/envsetup.sh && brunch flo

Update the sources:

Code: cd ~/Android/Darkkat && repo sync

Code: cd ~/Android/Darkkat && . build/envsetup.sh && make clobber

Of course it`ll work on slow hardware, too,but it takes a lot more time.(you can use any directory name and path you like, but you have to change the commands to match to your local path)(now it`s time to drink a big cup of coffee, tea, or ... this can take some time)I recommend to use ccache,if you have enough free space on your SSD/HDD, (about 50 GB).Using ccache will speed up the building times,(first build will take longer, because the cchache will be created).For me, (clean build)and add this line to the bottom:the default ccache directory is located at the root of your home directory,if you like a different location add this line, too;Now run the following command:(time for the next big cup of coffee, ...)That`s it,you (hopefully) compiled successfully your own DarkKat rom(this time it doesn`t take much time)Now build again,(if there are a lot of sourcecode changes, or your last build is some times ago you may need to clean your "out" directory):