Project

General

Profile

DeprecatedReplicant60GalaxyS2I9100Build » History » Version 1

Wolfgang Wiedmeyer, 03/06/2017 05:27 PM
original version

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