Project

General

Profile

GalaxySI9000Build » History » Version 7

Paul Kocialkowski, 07/01/2015 01:34 PM

1 7 Paul Kocialkowski
h1. Galaxy S (I9000) build
2 1 Paul Kocialkowski
3
h2. Prerequisites
4 5 Paul Kocialkowski
5 7 Paul Kocialkowski
The following are required to build Replicant for the Galaxy S (I9000):
6
* [[BuildDependenciesInstallation|Build dependencies installation]]
7
* [[ReplicantSourceCode|Replicant 4.2 source code]]
8 1 Paul Kocialkowski
9 7 Paul Kocialkowski
h2. Build
10 1 Paul Kocialkowski
11 7 Paul Kocialkowski
*There is no need to build as root*, building as a regular user should be preferred.
12 1 Paul Kocialkowski
13 7 Paul Kocialkowski
In the source tree root folder, run:
14 1 Paul Kocialkowski
<pre>
15
source build/envsetup.sh
16
lunch replicant_galaxysmtd-userdebug
17
</pre>
18
19 7 Paul Kocialkowski
Then, start the build:
20 2 Paul Kocialkowski
<pre>
21 5 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 7 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 7 Paul Kocialkowski
h2. Produced binaries
28 1 Paul Kocialkowski
29 7 Paul Kocialkowski
The produced binaries are located at:
30
* @out/target/product/galaxysmtd/@ for the target
31
* @out/host/linux-x86/bin/@ for the host