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