HTCDreamBuild » History » Version 23
Paul Kocialkowski, 10/08/2011 12:42 PM
1 | 23 | Paul Kocialkowski | * Make sure you installed the [wiki:BuildDependencies]. |
---|---|---|---|
2 | 22 | Denis 'GNUtoo' Carikli | |
3 | 23 | Paul Kocialkowski | == Warning == |
4 | 7 | Brian Kemp | |
5 | 23 | Paul Kocialkowski | '''Do not build as root, always build as user.''' |
6 | 12 | Brian Kemp | |
7 | 1 | Denis 'GNUtoo' Carikli | == Setup == |
8 | Get and install the repo tool |
||
9 | {{{ |
||
10 | mkdir bin |
||
11 | cd bin |
||
12 | wget http://android.git.kernel.org/repo |
||
13 | chmod a+x repo |
||
14 | cd .. |
||
15 | }}} |
||
16 | Get replicant 2.2 |
||
17 | {{{ |
||
18 | mkdir replicant-2.2 |
||
19 | cd replicant-2.2 |
||
20 | ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
21 | ../bin/repo sync |
||
22 | }}} |
||
23 | |||
24 | == Each time you want to build replicant 2.2 == |
||
25 | {{{ |
||
26 | 2 | Denis 'GNUtoo' Carikli | cd ~/replicant-2.2 |
27 | 1 | Denis 'GNUtoo' Carikli | ../bin/repo sync |
28 | source build/envsetup.sh |
||
29 | export ANDROID_JAVA_HOME=$JAVA_HOME |
||
30 | 20 | Denis 'GNUtoo' Carikli | lunch replicant_dream_sapphire-eng |
31 | 21 | Paul Kocialkowski | make -j$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) distimages #uses arguments like -j9 to speed up build in case of multi-core cpu |
32 | 1 | Denis 'GNUtoo' Carikli | }}} |
33 | 21 | Paul Kocialkowski | Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files. |
34 | Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors. |
||
35 | 16 | John Sullivan | |
36 | You will find your built images in ./out/target/product/dream_sapphire/. |
||
37 | 17 | John Sullivan | |
38 | You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/. |
||
39 | 18 | John Sullivan | |
40 | Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!] |