Project

General

Profile

HTCDreamBuild » History » Version 8

Brian Kemp, 01/11/2011 07:46 PM
add dependencies

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