HTCDreamBuild » History » Version 12
Brian Kemp, 01/12/2011 01:37 AM
alphabetized dependencies, added another two libncurses-dev and openjdk
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 | 10 | Brian Kemp | * zlib development headers (zlib1g-dev) |
13 | 7 | Brian Kemp | |
14 | 1 | Denis 'GNUtoo' Carikli | == Warning == |
15 | 12 | Brian Kemp | Do not build as root, always build as user. |
16 | 1 | Denis 'GNUtoo' Carikli | == Setup == |
17 | Get and install the repo tool |
||
18 | {{{ |
||
19 | mkdir bin |
||
20 | cd bin |
||
21 | wget http://android.git.kernel.org/repo |
||
22 | chmod a+x repo |
||
23 | cd .. |
||
24 | }}} |
||
25 | Get replicant 2.2 |
||
26 | {{{ |
||
27 | mkdir replicant-2.2 |
||
28 | cd replicant-2.2 |
||
29 | ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
30 | ../bin/repo sync |
||
31 | }}} |
||
32 | |||
33 | == Each time you want to build replicant 2.2 == |
||
34 | {{{ |
||
35 | 2 | Denis 'GNUtoo' Carikli | cd ~/replicant-2.2 |
36 | 1 | Denis 'GNUtoo' Carikli | ../bin/repo sync |
37 | source build/envsetup.sh |
||
38 | export ANDROID_JAVA_HOME=$JAVA_HOME |
||
39 | lunch cyanogen_dream_sapphire-eng |
||
40 | 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 |
41 | 1 | Denis 'GNUtoo' Carikli | }}} |
42 | 12 | Brian Kemp | Don't forget the bacon at the end, without that you will have some build errors. |
43 | 6 | Denis 'GNUtoo' Carikli | Note that the bacon also produces standard images like system.img, just ship or use the system.img like images |