Every one wishes to make there own Cyanogen ROM ,Straight to point
Requirements:
AT LEAST 4 GB RAM(compiling takes a lot of
times so faster PC makes faster compilation)
INTERNET CONNECTION(Slow connection will be
a show stopper)
Setting Up Things:-
Ubuntu 14(64 BIT) - http://www.ubuntu.com/download/desktop
After installing Ubuntu setup the things.
Open Terminal (CTR L+ALT+T)
So here are the steps
INSTALL THE BUILD PACKAGES
Several "build packages" are
needed to build CyanogenMOD. You can install these using the package manager of
your choice.
OPEN TERMINAL AND TYPE THESE CODES
$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
For both 32-bit & 64-bit systems,
you'll need:
bison build-essential curl flex git gnupg
gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev
libxml2 libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool
squashfs-tools xsltproc zip zlib1g-dev
In addition to the above, for 64-bit
systems, get these:
g++-multilib gcc-multilib lib32ncurses5-dev
lib32readline-gplv2-dev lib32z1-dev
Create the directories
You will need to set up some directories in
your build environment.
To create them:
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
$ PATH=~/bin:$PATH
INSTALL THE REPO COMMANDS
Enter the following to download the
"repo" binary and make it executable
$ curl https://storage.googleapis.com/git-repo-downloads/repo
> ~/bin/repo
$ chmod a+x ~/bin/repo
Initialize the CyanogenMod source repository
Configure edit
$ git config --global user.email "YOUR
EMAIL"
$ git config --global user.name "USER
NAME"
Downloading Sources
$ mkdir ROMname
(Example = mkdir cm-12.1)
$ cd ROMname
(Example = cd cm-12.1)
$ repo init -u Link_ Of_Init -b branch
(Example = repo init -u
git://github.com/CyanogenMod/android.git -b cm-12.1)
$ repo sync -j#
(# = Number of threads per core)(Example =
repo sync -j4)
Enter the following to initialize the
repository and make sure the cm branch entered here is the one
you wish to build and is supported on your
device
Note:
$ repo sync
To start the download of all the source
code to your computer
The CM manifests include a sensible default
configuration for repo, which we strongly suggest you use. For reference, our
default values are -j 4 and -c. The -j 4 part means that there will be four
simultaneous threads/connections. If you experience problems syncing, you can
lower this to -j 3 or -j 2. -c will ask repo to pull in only the current
branch, instead of the entire CM history.
Prepare to wait a long time while the
source code downloads.
Compiling ROM
Open Terminal
$ cd ROMname
(Example = cd cm-12.1)
$ . build/envsetup.sh
$ breakfast
(Menu will appear choose ur device from
list,This command will download all dependencies of device)
$ brunch -j#
(# = Number of threads per core)(Example =
repo sync -j4)(Menu will appear choose your device from list,This Command will
start Compiling ROM)
Installing ROM
Assuming the build completed without error
(it will be obvious when it finishes), type
$ cd $OUT
which is the CyanogenMod installation
package.
