Skip to content
thenameisnigel edited this page Dec 28, 2012 · 4 revisions

How to build CyanogenMod 9 for the Epic 4G Touch

===================================================

Setting up a Local Java Repo:

cd ~/ wget https://github.com/flexiondotorg/oab-java6/raw/0.2.4/oab-java.sh -O oab-java.sh chmod +x oab-java.sh sudo ./oab-java.sh

Install the Build Packages using the package manager:

Installing required packages (Ubuntu 10.04 -- 11.10) You will need a 64-bit version of Ubuntu. Ubuntu 10.04 is recommended. Building using a newer version of Ubuntu is currently only experimentally supported and is not guaranteed to work on branches other than master.

$ sudo apt-get install git-core gnupg flex bison gperf build-essential
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown
libxml2-utils xsltproc

On Ubuntu 10.10:

$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so

On Ubuntu 11.10:

$ sudo apt-get install libx11-dev:i386

Installing required packages (Ubuntu 12.04) Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.

$ sudo apt-get install git-core gnupg flex bison gperf build-essential
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

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 

Install the Repository

Enter the following to download make executable the "repo" binary:

sudo curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /usr/bin/repo 
sudo chmod a+x /usr/bin/repo

Now enter the following to initialize the repository:

cd ~/android/system/ 
repo init -u https://github.com/CyanogenMod/android.git -b ics

Now we need to make a local_manifest.xml..

wget https://dl.dropbox.com/s/pb2ltwk73no6xhg/d710_local_manifest.xml?dl=1

mv local_manifest.xml?dl=1 ~/android/.repo/local_manifest.xml

Now save your local_manifest.xml

At this point you will either need to add a proprietary vendor repo to your local manifest, or have a phone with CM9 already installed to extract files from. I'll cover extracting the files later on in the guide.

  • repo sync -j4 (where $ is the number of download threads you want to use)

When that completes (it will take a while, yes everything takes a while) you need to download some pre-builts.

 vendor/cm/get-prebuilts

Now let's specify what we are going to build.. (Don't forget the . at the begining)

 . build/envsetup.sh && lunch (whatever number the d710 is)

Ready to start building?

 export USE_CCACHE=1 CM_EXPERIMENTAL=1
 make -j4
Clone this wiki locally