NexusSI902xBuild » History » Version 1
Matt Kraai, 09/15/2011 12:23 PM
1 | 1 | Matt Kraai | == Required Packages == |
---|---|---|---|
2 | The required packages should be the same as for HTC Dream: see [wiki:BuildDream] |
||
3 | |||
4 | == Warning == |
||
5 | Do not build as root, always build as user. |
||
6 | |||
7 | == Setup == |
||
8 | Get and install the repo tool: |
||
9 | {{{ |
||
10 | mkdir bin |
||
11 | cd bin |
||
12 | wget http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo |
||
13 | chmod a+x repo |
||
14 | cd .. |
||
15 | }}} |
||
16 | Once kernel.org is back up, repo should be downloaded from http://android.git.kernel.org/repo instead. |
||
17 | |||
18 | Get replicant 2.3: |
||
19 | {{{ |
||
20 | mkdir replicant-2.3 |
||
21 | cd replicant-2.3 |
||
22 | ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3 |
||
23 | }}} |
||
24 | Since kernel.org is down, I then had to edit .repo/manifest.xml and replace the default element with the following elements: |
||
25 | {{{ |
||
26 | <remote fetch="git://codeaurora.org/" name="caf" review="codeaurora.org"/> |
||
27 | <default remote="caf" revision="gingerbread-release" /> |
||
28 | }}} |
||
29 | Finally, I ran |
||
30 | {{{ |
||
31 | ../bin/repo sync |
||
32 | }}} |
||
33 | |||
34 | == Each time you want to build replicant 2.3 == |
||
35 | {{{ |
||
36 | cd ~/replicant-2.3 |
||
37 | ../bin/repo sync |
||
38 | source build/envsetup.sh |
||
39 | export ANDROID_JAVA_HOME=$JAVA_HOME |
||
40 | lunch replicant_crespo-eng |
||
41 | 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 | }}} |
||
43 | Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files. |
||
44 | Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors. |
||
45 | |||
46 | You will find your built images in ./out/target/product/crespo/. |
||
47 | |||
48 | You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/. |
||
49 | |||
50 | Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!] |