Project

General

Profile

NexusOneBuild » History » Version 15

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

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