Project

General

Profile

NexusSI902xBuild » History » Version 3

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

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