NexusSI902xBuild » History » Version 11
Paul Kocialkowski, 12/25/2014 12:13 PM
| 1 | 8 | Paul Kocialkowski | h1. Nexus S (I902x) Build |
|---|---|---|---|
| 2 | 1 | Matt Kraai | |
| 3 | h2. Prerequisites |
||
| 4 | |||
| 5 | 11 | Paul Kocialkowski | The following are required to build Replicant for the Nexus S (I902x): |
| 6 | * Build dependencies: [[BuildDependenciesInstallation]] |
||
| 7 | * Replicant 4.2 sources: [[ReplicantSources]] |
||
| 8 | 1 | Matt Kraai | |
| 9 | 11 | Paul Kocialkowski | h2. Build |
| 10 | 4 | Paul Kocialkowski | |
| 11 | 11 | Paul Kocialkowski | *There is no need to build as root*, building as a regular user should be preferred. |
| 12 | 1 | Matt Kraai | |
| 13 | 11 | Paul Kocialkowski | In the source tree root folder, run: |
| 14 | 1 | Matt Kraai | <pre> |
| 15 | source build/envsetup.sh |
||
| 16 | lunch replicant_crespo-userdebug |
||
| 17 | </pre> |
||
| 18 | 5 | Paul Kocialkowski | |
| 19 | 11 | Paul Kocialkowski | Then, start the build: |
| 20 | 7 | Paul Kocialkowski | <pre> |
| 21 | 8 | Paul Kocialkowski | parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) |
| 22 | 1 | Matt Kraai | make -j$parallel_tasks bacon |
| 23 | 4 | Paul Kocialkowski | </pre> |
| 24 | 11 | Paul Kocialkowski | The -j@n@ argument indicates the number of parallel tasks during the build (you can remove it from the command line to have only one task at a time). |
| 25 | @$parallel_tasks@ holds an optimized number of parallel tasks for your hardware. You may want to reduce this number if e.g. the computer runs out of RAM during the build. |
||
| 26 | 1 | Matt Kraai | |
| 27 | 11 | Paul Kocialkowski | h2. Produced binaries |
| 28 | 1 | Matt Kraai | |
| 29 | 11 | Paul Kocialkowski | The produced binaries are located at: |
| 30 | * @out/target/product/crespo/@ for the target |
||
| 31 | * @out/host/linux-x86/bin/@ for the host |