GTA04Build » History » Version 13
Loic Dachary, 10/22/2016 10:06 PM
s/Sources/SourceCode/
| 1 | 1 | Denis 'GNUtoo' Carikli | h1. GTA04 Build |
|---|---|---|---|
| 2 | |||
| 3 | This explains how to build Replicant for the GTA04. |
||
| 4 | |||
| 5 | h2. Prerequisites |
||
| 6 | |||
| 7 | 10 | Paul Kocialkowski | Before building, you must make sure that: |
| 8 | 9 | Paul Kocialkowski | * You have installed the build dependencies: [[BuildDependenciesInstallation]] |
| 9 | 13 | Loic Dachary | * You have downloaded Replicant 4.2 sources: [[ReplicantSourceCode]] |
| 10 | * Your sources are up to date: [[ReplicantSourceCode#DownloadingUpdating-the-source-from-the-repos|Downloading/Updating the source from the repos]] |
||
| 11 | 10 | Paul Kocialkowski | * Your terminal is running in the directory where the sources were downloaded |
| 12 | 1 | Denis 'GNUtoo' Carikli | |
| 13 | h2. Warning |
||
| 14 | |||
| 15 | *Do not build as root, always build as user.* |
||
| 16 | |||
| 17 | 10 | Paul Kocialkowski | h2. Building |
| 18 | 7 | Paul Kocialkowski | |
| 19 | Setup the build environment: |
||
| 20 | <pre> |
||
| 21 | source build/envsetup.sh |
||
| 22 | 10 | Paul Kocialkowski | lunch replicant_gta04-userdebug |
| 23 | 7 | Paul Kocialkowski | export ANDROID_JAVA_HOME=$JAVA_HOME |
| 24 | 1 | Denis 'GNUtoo' Carikli | </pre> |
| 25 | 7 | Paul Kocialkowski | |
| 26 | Start the build: |
||
| 27 | 1 | Denis 'GNUtoo' Carikli | <pre> |
| 28 | parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) |
||
| 29 | 12 | Paul Kocialkowski | make -j$parallel_tasks bootable bacon |
| 30 | 3 | Paul Kocialkowski | </pre> |
| 31 | 1 | Denis 'GNUtoo' Carikli | |
| 32 | The -jn argument is to indicate the number of parallel tasks during the build. |
||
| 33 | You can remove it from the command line to have only one task at a time. With fast hardware, best results will come with @-j9@, @-j16@ and @-j32@. |
||
| 34 | |||
| 35 | h2. Output files |
||
| 36 | |||
| 37 | 10 | Paul Kocialkowski | The produced files are located at: |
| 38 | 1 | Denis 'GNUtoo' Carikli | * built target images: @out/target/product/gta04/@ |
| 39 | * built host tools: @out/host/linux-x86/bin/@ |