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