Project

General

Profile

NexusSI902xBuild » History » Version 4

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

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