1 h1. //print DEVICE_NAME// build
5 The following are required to build Replicant for the //print DEVICE_NAME//:
6 * [[BuildDependenciesInstallation|Build dependencies installation]]
7 * [[ReplicantSourceCode|Replicant //print DEVICE_REPLICANT_VERSION// source code]]
11 *There is no need to build as root*, building as a regular user should be preferred.
13 In the source tree root folder, run:
15 source build/envsetup.sh
16 //ifeq DEVICE_NAME SDK
19 lunch replicant_//print DEVICE_CODENAME//-userdebug
23 Then, start the build:
25 parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc)
26 make -j$parallel_tasks //print BUILD_TARGET//
28 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).
29 @$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.
33 The produced binaries are located at:
34 //ifeq DEVICE_NAME SDK
35 * @out/host/linux-x86/sdk/@
37 * @out/target/product///print DEVICE_CODENAME///@ for the target
38 * @out/host/linux-x86/bin/@ for the host