Project

General

Profile

HTCDreamBuild » History » Version 24

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

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