Project

General

Profile

DeprecatedReplicant60GalaxyS2I9100Build » History » Version 3

Wolfgang Wiedmeyer, 03/08/2017 01:52 AM
forked source code page

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 3 Wolfgang Wiedmeyer
* [[Replicant60ReplicantSourceCode|Replicant 6.0 source code]]
8 1 Wolfgang Wiedmeyer
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 2 Wolfgang Wiedmeyer
15 1 Wolfgang Wiedmeyer
<pre>
16 2 Wolfgang Wiedmeyer
. build/envsetup.sh
17 1 Wolfgang Wiedmeyer
lunch replicant_i9100-userdebug
18
</pre>
19
20
Then, start the build:
21 2 Wolfgang Wiedmeyer
22 1 Wolfgang Wiedmeyer
<pre>
23
parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc)
24
make -j$parallel_tasks bacon
25
</pre>
26 2 Wolfgang Wiedmeyer
27 1 Wolfgang Wiedmeyer
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).
28
@$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.
29
30 2 Wolfgang Wiedmeyer
Finally, sign the resulting images:
31
32
<pre>
33
./vendor/replicant/sign-build i9100
34
</pre>
35
36
The first time you run the script, it will ask you a few questions that are needed to generate the necessary signing keys.
37
38 1 Wolfgang Wiedmeyer
h2. Produced binaries
39
40
The produced binaries are located at:
41 2 Wolfgang Wiedmeyer
* @out/dist/@ for the target
42 1 Wolfgang Wiedmeyer
* @out/host/linux-x86/bin/@ for the host