SDKBuild » History » Version 13
  Paul Kocialkowski, 07/01/2015 01:35 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 | parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) | ||
| 22 | make -j$parallel_tasks bacon | ||
| 23 | </pre> | ||
| 24 | 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 | @$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 | |||
| 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/@ |