Project

General

Profile

Actions

HTCDreamBuild » History » Revision 25

« Previous | Revision 25/27 (diff) | Next »
Paul Kocialkowski, 10/08/2011 12:42 PM


Build dependencies

Make sure you installed the BuildDependencies.

Warning

Do not build as root, always build as user.

Setup

Get and install the repo tool

 mkdir bin
 cd bin
 wget http://android.git.kernel.org/repo
 chmod a+x repo
 cd ..

Get replicant 2.2
 mkdir replicant-2.2
 cd replicant-2.2
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
 ../bin/repo sync

Each time you want to build replicant 2.2

cd ~/replicant-2.2
 ../bin/repo sync
source build/envsetup.sh
export ANDROID_JAVA_HOME=$JAVA_HOME
lunch replicant_dream_sapphire-eng 
make -j$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) distimages  #uses arguments like -j9 to speed up build in case of multi-core cpu

<pre>

You will find your built images in ./out/target/product/dream_sapphire/.

You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/.

Now you are ready to "install!":http://trac.osuosl.org/trac/replicant/wiki/Installation

Updated by Paul Kocialkowski over 12 years ago · 25 revisions

Also available in: PDF HTML TXT