NexusOneBuild » History » Version 16
Paul Kocialkowski, 10/08/2011 12:42 PM
1 | 16 | Paul Kocialkowski | == Build dependencies == |
---|---|---|---|
2 | |||
3 | Make sure you installed the [wiki:BuildDependencies]. |
||
4 | 1 | Denis 'GNUtoo' Carikli | |
5 | 14 | Paul Kocialkowski | == Warning == |
6 | 16 | Paul Kocialkowski | |
7 | '''Do not build as root, always build as user.''' |
||
8 | 13 | Paul Kocialkowski | |
9 | 1 | Denis 'GNUtoo' Carikli | == Setup == |
10 | 7 | Denis 'GNUtoo' Carikli | Get and install the repo tool |
11 | {{{ |
||
12 | mkdir bin |
||
13 | cd bin |
||
14 | wget http://android.git.kernel.org/repo |
||
15 | chmod a+x repo |
||
16 | cd .. |
||
17 | }}} |
||
18 | Get replicant 2.2 |
||
19 | 5 | Denis 'GNUtoo' Carikli | {{{ |
20 | mkdir replicant-2.2 |
||
21 | cd replicant-2.2 |
||
22 | ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
23 | 6 | Denis 'GNUtoo' Carikli | ../bin/repo sync |
24 | 5 | Denis 'GNUtoo' Carikli | }}} |
25 | |||
26 | 4 | Denis 'GNUtoo' Carikli | == Each time you want to build replicant 2.2 == |
27 | 1 | Denis 'GNUtoo' Carikli | {{{ |
28 | cd ~/replicant-2.2 |
||
29 | 8 | Denis 'GNUtoo' Carikli | ../bin/repo sync |
30 | 1 | Denis 'GNUtoo' Carikli | source build/envsetup.sh |
31 | export ANDROID_JAVA_HOME=$JAVA_HOME |
||
32 | 11 | Denis 'GNUtoo' Carikli | lunch replicant_passion-eng |
33 | 12 | 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 |
34 | 1 | Denis 'GNUtoo' Carikli | }}} |
35 | 12 | Paul Kocialkowski | Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files. |
36 | Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors. |
||
37 | |||
38 | You will find your built images in ./out/target/product/passion/. |
||
39 | |||
40 | You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/. |
||
41 | |||
42 | Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!] |