Hi ! Let’s start building the OS 🙂 I hope you have collected all required source including pre-built, device specific code and proprietary blobs by now.
*Note: Before starting the build make sure you have enough disk space in your machine. Otherwise the build may stop suddenly with unspecified make errors. It’s good if you have 65-70GB space on your VM or Linux environment to complete a successful build.
*Note: You may need to do some work to overcome make errors which are not relating to memory issues.
At the end of a successful build, it will generate a zip file which you can use for flashing, kernel, recovery.img and etc. at the system/out directory
Here the steps to proceed for building the source.
Step 1: Turn on caching. Add following at bashrc
Add following at the end of file.
Step 2:Install following prerequisites required for building
Command:$sudo apt-get install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
Step 3:Start building with brunch command.
To enable the brunch command first run . build/envsetup.sh (here .<space>build/envetup.sh)
Command:$ brunch <device name>
Command:$ brunch ancora
Some instances during building…
Command :$cd $OUT
Yes we got it done !! 🙂 Lets see what we have got
go to system/out directory
@system/out/target/product/<device name> you will find the which contains the cm-11-20150218-UNOFFICIAL-ancora.zip Cyanogenmod.
Cheers ! 🙂