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