HTCDreamBuild » History » Version 21
Paul Kocialkowski, 06/11/2011 09:48 AM
1 | 7 | Brian Kemp | == Required Packages == |
---|---|---|---|
2 | 8 | Brian Kemp | * bison |
3 | 1 | Denis 'GNUtoo' Carikli | * flex |
4 | 12 | Brian Kemp | * git (git-core) |
5 | 8 | Brian Kemp | * gperf |
6 | 12 | Brian Kemp | * libncurses development headers (libncurses-dev) |
7 | * make (build-essential) |
||
8 | 9 | Brian Kemp | * mksquashfs (squashfs-tools) |
9 | 12 | Brian Kemp | * openjdk |
10 | * pngcrush - the build process will complain if it is not installed but builds will complete. |
||
11 | * wget (or curl) |
||
12 | 13 | John Sullivan | * zip |
13 | 1 | Denis 'GNUtoo' Carikli | * zlib development headers (zlib1g-dev) |
14 | 15 | John Sullivan | |
15 | === Additional requirements for amd64 === |
||
16 | |||
17 | * libc6-dev-i386 |
||
18 | * gcc-multilib |
||
19 | 19 | Paul Kocialkowski | * g++-multilib |
20 | * lib32z1-dev |
||
21 | * lib32readline5-dev |
||
22 | 15 | John Sullivan | * lib32ncurses5-dev |
23 | * 32-bit compatibility libraries |
||
24 | * If you see errors about incompatible library versions, you may need some symlinks. For example: |
||
25 | * sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so |
||
26 | * sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so |
||
27 | 7 | Brian Kemp | |
28 | 1 | Denis 'GNUtoo' Carikli | == Warning == |
29 | 12 | Brian Kemp | Do not build as root, always build as user. |
30 | 1 | Denis 'GNUtoo' Carikli | == Setup == |
31 | Get and install the repo tool |
||
32 | {{{ |
||
33 | mkdir bin |
||
34 | cd bin |
||
35 | wget http://android.git.kernel.org/repo |
||
36 | chmod a+x repo |
||
37 | cd .. |
||
38 | }}} |
||
39 | Get replicant 2.2 |
||
40 | {{{ |
||
41 | mkdir replicant-2.2 |
||
42 | cd replicant-2.2 |
||
43 | ../bin/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2 |
||
44 | ../bin/repo sync |
||
45 | }}} |
||
46 | |||
47 | == Each time you want to build replicant 2.2 == |
||
48 | {{{ |
||
49 | 2 | Denis 'GNUtoo' Carikli | cd ~/replicant-2.2 |
50 | 1 | Denis 'GNUtoo' Carikli | ../bin/repo sync |
51 | source build/envsetup.sh |
||
52 | export ANDROID_JAVA_HOME=$JAVA_HOME |
||
53 | 20 | Denis 'GNUtoo' Carikli | lunch replicant_dream_sapphire-eng |
54 | 21 | 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 |
55 | 1 | Denis 'GNUtoo' Carikli | }}} |
56 | 21 | Paul Kocialkowski | Note that you can use {{{bacon}}} instead of {{{distimages}}} to produce a more complete set of images, including zip files. |
57 | Don't forget the {{{distimages}}}/{{{bacon}}} at the end, without that you will have some build errors. |
||
58 | 16 | John Sullivan | |
59 | You will find your built images in ./out/target/product/dream_sapphire/. |
||
60 | 17 | John Sullivan | |
61 | You will also find fastboot, needed to install the images, in ./out/host/linux-x86/bin/. |
||
62 | 18 | John Sullivan | |
63 | Now you are ready to [http://trac.osuosl.org/trac/replicant/wiki/Installation install!] |