Project

General

Profile

NexusOneBuild » History » Version 17

Paul Kocialkowski, 10/08/2011 12:42 PM

1 17 Paul Kocialkowski
2
h2. Build dependencies
3
4 1 Denis 'GNUtoo' Carikli
 
5 17 Paul Kocialkowski
Make sure you installed the [[BuildDependencies]].
6 1 Denis 'GNUtoo' Carikli
7
8 17 Paul Kocialkowski
h2. Warning
9 1 Denis 'GNUtoo' Carikli
10 17 Paul Kocialkowski
11
*Do not build as root, always build as user.*
12
13
14
h2. Setup
15
16 1 Denis 'GNUtoo' Carikli
Get and install the repo tool
17 17 Paul Kocialkowski
<pre>
18 7 Denis 'GNUtoo' Carikli
 mkdir bin
19
 cd bin
20
 wget http://android.git.kernel.org/repo
21 1 Denis 'GNUtoo' Carikli
 chmod a+x repo
22
 cd ..
23 17 Paul Kocialkowski
</pre>
24 1 Denis 'GNUtoo' Carikli
Get replicant 2.2
25 17 Paul Kocialkowski
<pre>
26 5 Denis 'GNUtoo' Carikli
 mkdir replicant-2.2
27 6 Denis 'GNUtoo' Carikli
 cd replicant-2.2
28 1 Denis 'GNUtoo' Carikli
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
29
 ../bin/repo sync
30 17 Paul Kocialkowski
</pre>
31 5 Denis 'GNUtoo' Carikli
32 17 Paul Kocialkowski
33
h2. Each time you want to build replicant 2.2
34
35
<pre>
36 8 Denis 'GNUtoo' Carikli
cd ~/replicant-2.2
37 1 Denis 'GNUtoo' Carikli
 ../bin/repo sync
38
source build/envsetup.sh
39 11 Denis 'GNUtoo' Carikli
export ANDROID_JAVA_HOME=$JAVA_HOME
40 12 Paul Kocialkowski
lunch replicant_passion-eng
41 1 Denis 'GNUtoo' Carikli
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
42 17 Paul Kocialkowski
</pre>
43
<pre>
44
<pre>
45 12 Paul Kocialkowski
46
You will find your built images in ./out/target/product/passion/.
47
48
You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/.
49
50 17 Paul Kocialkowski
Now you are ready to "install!":http://trac.osuosl.org/trac/replicant/wiki/Installation