GalaxyS2I9100Build » History » Revision 5
Revision 4 (Paul Kocialkowski, 01/21/2014 04:02 PM) → Revision 5/12 (Paul Kocialkowski, 07/10/2015 02:39 PM)
h1. Galaxy S 2 (I9100) build h2. Prerequisites The following are required Build This explains how to build Replicant for the Galaxy S 2 (I9100): (I9100). h2. Prerequisites Before building, you must make sure that: * [[BuildDependenciesInstallation|Build dependencies installation]] You have installed the build dependencies: [[BuildDependenciesInstallation]] * [[ReplicantSourceCode|Replicant You have downloaded Replicant 4.2 sources: [[ReplicantSources]] * Your sources are up to date: [[ReplicantSources#DownloadingUpdating-the-source-from-the-repos|Downloading/Updating the source code]] from the repos]] * Your terminal is running in the directory where the sources were downloaded h2. Build *There is no need to Warning *Do not build as root*, building root, always build as a regular user should be preferred. In user.* h2. Building Setup the source tree root folder, run: build environment: <pre> source build/envsetup.sh lunch replicant_i9100-userdebug export ANDROID_JAVA_HOME=$JAVA_HOME </pre> Then, start Start the build: <pre> parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc) make -j$parallel_tasks bacon </pre> The @-jn@ -jn argument indicates is to indicate the number of parallel tasks during the build (you build. You can remove it from the command line to have only one task at a time). @$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. time. With fast hardware, best results will come with @-j9@, @-j16@ and @-j32@. h2. Produced binaries Output files The produced binaries files are located at: * built target images: @out/target/product/i9100/@ for the target * built host tools: @out/host/linux-x86/bin/@ for the host