Project

General

Profile

NexusSI902xBuild » History » Version 2

Matt Kraai, 09/17/2011 01:35 PM

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