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