NexusOneBuild » History » Revision 11
Revision 10 (Denis 'GNUtoo' Carikli, 01/03/2011 11:01 PM) → Revision 11/19 (Denis 'GNUtoo' Carikli, 06/08/2011 08:39 PM)
== 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_passion-eng cyanogen_passion-eng
make -j$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) bacon #uses arguments like -j9 to speed up build in case of multi-core cpu
}}}