Project

General

Profile

HTCDreamBuild » History » Version 9

Brian Kemp, 01/11/2011 09:14 PM
add flex as dependency

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 8 Brian Kemp
 * mksquashfs (squashfs-tools)
8
 * pngcrush - the build process will complain if it is not installed
9 7 Brian Kemp
10 1 Denis 'GNUtoo' Carikli
== Warning ==
11
 Do not build as root,always build as user.
12
== Setup ==
13
Get and install the repo tool
14
{{{
15
 mkdir bin
16
 cd bin
17
 wget http://android.git.kernel.org/repo
18
 chmod a+x repo
19
 cd ..
20
}}}
21
Get replicant 2.2
22
{{{
23
 mkdir replicant-2.2
24
 cd replicant-2.2
25
 ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
26
 ../bin/repo sync
27
}}}
28
29
== Each time you want to build replicant 2.2 ==
30
{{{
31
cd ~/replicant-2.2
32 2 Denis 'GNUtoo' Carikli
 ../bin/repo sync
33 1 Denis 'GNUtoo' Carikli
source build/envsetup.sh
34
export ANDROID_JAVA_HOME=$JAVA_HOME
35
lunch cyanogen_dream_sapphire-eng 
36 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
37 1 Denis 'GNUtoo' Carikli
}}}
38 5 Denis 'GNUtoo' Carikli
Don't forget the bacon at the end, without that you will have some builds errors.
39 6 Denis 'GNUtoo' Carikli
Note that the bacon also produces standard images like system.img, just ship or use the system.img like images