SDKBuild » History » Version 17
Paul Kocialkowski, 09/20/2015 12:05 PM
| 1 | 11 | Paul Kocialkowski | h1. SDK build |
|---|---|---|---|
| 2 | |||
| 3 | h2. Prerequisites |
||
| 4 | |||
| 5 | The following are required to build Replicant for the SDK: |
||
| 6 | 13 | Paul Kocialkowski | * [[BuildDependenciesInstallation|Build dependencies installation]] |
| 7 | * [[ReplicantSourceCode|Replicant 4.2 source code]] |
||
| 8 | 11 | Paul Kocialkowski | |
| 9 | h2. Build |
||
| 10 | |||
| 11 | *There is no need to build as root*, building as a regular user should be preferred. |
||
| 12 | |||
| 13 | In the source tree root folder, run: |
||
| 14 | <pre> |
||
| 15 | source build/envsetup.sh |
||
| 16 | lunch sdk-eng |
||
| 17 | </pre> |
||
| 18 | |||
| 19 | Then, start the build: |
||
| 20 | <pre> |
||
| 21 | 16 | Paul Kocialkowski | parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) |
| 22 | 17 | Paul Kocialkowski | make -j$parallel_tasks sdk |
| 23 | 1 | Denis 'GNUtoo' Carikli | </pre> |
| 24 | 11 | Paul Kocialkowski | The @-jn@ 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 | 16 | Paul Kocialkowski | @$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 | 11 | Paul Kocialkowski | |
| 27 | h2. Produced binaries |
||
| 28 | |||
| 29 | 1 | Denis 'GNUtoo' Carikli | The produced binaries are located at: |
| 30 | 12 | Paul Kocialkowski | * @out/host/linux-x86/sdk/@ |