Project

General

Profile

GalaxyS2I9100Build » History » Version 5

Paul Kocialkowski, 07/10/2015 02:39 PM

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