Project

General

Profile

HTCDreamBuild » History » Version 22

Denis 'GNUtoo' Carikli, 09/03/2011 03:00 PM

1 7 Brian Kemp
== Required Packages ==
2 8 Brian Kemp
 * bison
3 1 Denis 'GNUtoo' Carikli
 * flex
4 12 Brian Kemp
 * git (git-core)
5 8 Brian Kemp
 * gperf
6 12 Brian Kemp
 * libncurses development headers (libncurses-dev)
7
 * make (build-essential)
8 9 Brian Kemp
 * mksquashfs (squashfs-tools)
9 12 Brian Kemp
 * openjdk
10
 * pngcrush - the build process will complain if it is not installed but builds will complete.
11
 * wget (or curl)
12 13 John Sullivan
 * zip
13 1 Denis 'GNUtoo' Carikli
 * zlib development headers (zlib1g-dev)
14 22 Denis 'GNUtoo' Carikli
 * lzma
15 15 John Sullivan
16
=== Additional requirements for amd64 ===
17
18
 * libc6-dev-i386
19
 * gcc-multilib
20 19 Paul Kocialkowski
 * g++-multilib 
21
 * lib32z1-dev 
22
 * lib32readline5-dev
23 15 John Sullivan
 * lib32ncurses5-dev
24
 * 32-bit compatibility libraries
25
 * If you see errors about incompatible library versions, you may need some symlinks. For example:
26
   * sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so
27
   * sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so
28 7 Brian Kemp
29 1 Denis 'GNUtoo' Carikli
== Warning ==
30 12 Brian Kemp
 Do not build as root, always build as user.
31 1 Denis 'GNUtoo' Carikli
== Setup ==
32
Get and install the repo tool
33
{{{
34
 mkdir bin
35
 cd bin
36
 wget http://android.git.kernel.org/repo
37
 chmod a+x repo
38
 cd ..
39
}}}
40
Get replicant 2.2
41
{{{
42
 mkdir replicant-2.2
43
 cd replicant-2.2
44
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
45
 ../bin/repo sync
46
}}}
47
48
== Each time you want to build replicant 2.2 ==
49
{{{
50 2 Denis 'GNUtoo' Carikli
cd ~/replicant-2.2
51 1 Denis 'GNUtoo' Carikli
 ../bin/repo sync
52
source build/envsetup.sh
53
export ANDROID_JAVA_HOME=$JAVA_HOME
54 20 Denis 'GNUtoo' Carikli
lunch replicant_dream_sapphire-eng 
55 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
56 1 Denis 'GNUtoo' Carikli
}}}
57 21 Paul Kocialkowski
Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files. 
58
Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors.
59 16 John Sullivan
60
You will find your built images in ./out/target/product/dream_sapphire/.
61 17 John Sullivan
62
You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/.
63 18 John Sullivan
64
Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!]