HTCDreamBuild » History » Version 25
Paul Kocialkowski, 10/08/2011 12:42 PM
1 | 25 | Paul Kocialkowski | |
---|---|---|---|
2 | h2. Build dependencies |
||
3 | |||
4 | 1 | Denis 'GNUtoo' Carikli | |
5 | 25 | Paul Kocialkowski | Make sure you installed the [[BuildDependencies]]. |
6 | 1 | Denis 'GNUtoo' Carikli | |
7 | |||
8 | 25 | Paul Kocialkowski | h2. Warning |
9 | 1 | Denis 'GNUtoo' Carikli | |
10 | 25 | Paul Kocialkowski | |
11 | *Do not build as root, always build as user.* |
||
12 | |||
13 | |||
14 | h2. Setup |
||
15 | |||
16 | 1 | Denis 'GNUtoo' Carikli | Get and install the repo tool |
17 | 25 | Paul Kocialkowski | <pre> |
18 | 1 | Denis 'GNUtoo' Carikli | mkdir bin |
19 | cd bin |
||
20 | wget http://android.git.kernel.org/repo |
||
21 | chmod a+x repo |
||
22 | cd .. |
||
23 | 25 | Paul Kocialkowski | </pre> |
24 | 1 | Denis 'GNUtoo' Carikli | Get replicant 2.2 |
25 | 25 | Paul Kocialkowski | <pre> |
26 | 1 | Denis 'GNUtoo' Carikli | mkdir replicant-2.2 |
27 | cd replicant-2.2 |
||
28 | ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
29 | ../bin/repo sync |
||
30 | 25 | Paul Kocialkowski | </pre> |
31 | 1 | Denis 'GNUtoo' Carikli | |
32 | 25 | Paul Kocialkowski | |
33 | h2. Each time you want to build replicant 2.2 |
||
34 | |||
35 | <pre> |
||
36 | 1 | Denis 'GNUtoo' Carikli | cd ~/replicant-2.2 |
37 | ../bin/repo sync |
||
38 | source build/envsetup.sh |
||
39 | 20 | Denis 'GNUtoo' Carikli | export ANDROID_JAVA_HOME=$JAVA_HOME |
40 | 21 | Paul Kocialkowski | lunch replicant_dream_sapphire-eng |
41 | 1 | Denis 'GNUtoo' Carikli | 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 |
42 | 25 | Paul Kocialkowski | </pre> |
43 | <pre> |
||
44 | <pre> |
||
45 | 16 | John Sullivan | |
46 | 17 | John Sullivan | You will find your built images in ./out/target/product/dream_sapphire/. |
47 | |||
48 | 18 | John Sullivan | You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/. |
49 | |||
50 | 25 | Paul Kocialkowski | Now you are ready to "install!":http://trac.osuosl.org/trac/replicant/wiki/Installation |