Project

General

Profile

NexusOneBuild » History » Version 12

Paul Kocialkowski, 06/11/2011 09:49 AM

1 7 Denis 'GNUtoo' Carikli
== Warning ==
2
 Do not build as root,always build as user.
3 1 Denis 'GNUtoo' Carikli
== Setup ==
4 7 Denis 'GNUtoo' Carikli
Get and install the repo tool
5
{{{
6
 mkdir bin
7
 cd bin
8
 wget http://android.git.kernel.org/repo
9
 chmod a+x repo
10
 cd ..
11
}}}
12
Get replicant 2.2
13 5 Denis 'GNUtoo' Carikli
{{{
14
 mkdir replicant-2.2
15
 cd replicant-2.2
16
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
17 6 Denis 'GNUtoo' Carikli
 ../bin/repo sync
18 5 Denis 'GNUtoo' Carikli
}}}
19
20 4 Denis 'GNUtoo' Carikli
== Each time you want to build replicant 2.2 ==
21 1 Denis 'GNUtoo' Carikli
{{{
22
cd ~/replicant-2.2
23 8 Denis 'GNUtoo' Carikli
 ../bin/repo sync
24 1 Denis 'GNUtoo' Carikli
source build/envsetup.sh
25
export ANDROID_JAVA_HOME=$JAVA_HOME
26 11 Denis 'GNUtoo' Carikli
lunch replicant_passion-eng
27 12 Paul Kocialkowski
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
28 1 Denis 'GNUtoo' Carikli
}}}
29 12 Paul Kocialkowski
Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files. 
30
Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors.
31
32
You will find your built images in ./out/target/product/passion/.
33
34
You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/.
35
36
Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!]