Project

General

Profile

HTCDreamBuild » History » Version 11

Brian Kemp, 01/11/2011 11:25 PM
more dependencies (gperf)

1 7 Brian Kemp
== Required Packages ==
2 8 Brian Kemp
 * wget, or alternate download tool such as curl
3
 * make (build-essential)
4
 * git (git-core)
5
 * bison
6 9 Brian Kemp
 * flex
7 11 Brian Kemp
 * gperf
8 8 Brian Kemp
 * mksquashfs (squashfs-tools)
9
 * pngcrush - the build process will complain if it is not installed
10 10 Brian Kemp
 * zlib development headers (zlib1g-dev)
11 7 Brian Kemp
12 1 Denis 'GNUtoo' Carikli
== Warning ==
13
 Do not build as root,always build as user.
14
== Setup ==
15
Get and install the repo tool
16
{{{
17
 mkdir bin
18
 cd bin
19
 wget http://android.git.kernel.org/repo
20
 chmod a+x repo
21
 cd ..
22
}}}
23
Get replicant 2.2
24
{{{
25
 mkdir replicant-2.2
26
 cd replicant-2.2
27
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
28
 ../bin/repo sync
29
}}}
30
31
== Each time you want to build replicant 2.2 ==
32
{{{
33
cd ~/replicant-2.2
34 2 Denis 'GNUtoo' Carikli
 ../bin/repo sync
35 1 Denis 'GNUtoo' Carikli
source build/envsetup.sh
36
export ANDROID_JAVA_HOME=$JAVA_HOME
37
lunch cyanogen_dream_sapphire-eng 
38 5 Denis 'GNUtoo' Carikli
make -j$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) bacon  #uses arguments like -j9 to speed up build in case of multi-core cpu
39 1 Denis 'GNUtoo' Carikli
}}}
40 5 Denis 'GNUtoo' Carikli
Don't forget the bacon at the end, without that you will have some builds errors.
41 6 Denis 'GNUtoo' Carikli
Note that the bacon also produces standard images like system.img, just ship or use the system.img like images