Project

General

Profile

HTCDreamBuild » History » Version 14

John Sullivan, 03/23/2011 10:13 PM
Need libc6-dev-i386 for gnu/stubs-32.h

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