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