Project

General

Profile

DeprecatedReplicant60GalaxyS3I9300Build » History » Version 2

Wolfgang Wiedmeyer, 03/06/2017 05:43 PM
Replicant 6.0 update (introducing the signing script)

1 1 Wolfgang Wiedmeyer
h1. Galaxy S 3 (I9300) Build
2
3
This explains how to build Replicant for the Galaxy S 3 (I9300).
4
5
h2. Prerequisites
6
7
Before building, you must make sure that:
8
* You have installed the build dependencies: [[BuildDependenciesInstallation]]
9 2 Wolfgang Wiedmeyer
* You have downloaded Replicant 6.0 sources: [[ReplicantSourceCode]]
10 1 Wolfgang Wiedmeyer
* Your sources are up to date: [[ReplicantSourceCode#DownloadingUpdating-the-source-from-the-repos|Downloading/Updating the source from the repos]]
11
* Your terminal is running in the directory where the sources were downloaded
12
 
13
h2. Warning
14
15
*Do not build as root, always build as user.*
16
17
h2. Building
18
19
Setup the build environment: 
20 2 Wolfgang Wiedmeyer
21 1 Wolfgang Wiedmeyer
<pre>
22 2 Wolfgang Wiedmeyer
. build/envsetup.sh
23 1 Wolfgang Wiedmeyer
lunch replicant_i9300-userdebug
24
export ANDROID_JAVA_HOME=$JAVA_HOME
25
</pre>
26
27
Start the build:
28 2 Wolfgang Wiedmeyer
29 1 Wolfgang Wiedmeyer
<pre>
30
parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc)
31
make -j$parallel_tasks bacon
32
</pre>
33
34
The -jn argument is to indicate the number of parallel tasks during the build. 
35
You can remove it from the command line to have only one task at a time. With fast hardware, best results will come with @-j9@, @-j16@ and @-j32@.
36
37 2 Wolfgang Wiedmeyer
Finally, sign the resulting images:
38
39
<pre>
40
./vendor/replicant/sign-build i9100
41
</pre>
42
43
The first time you run the script, it will ask you a few questions that are needed to generate the necessary signing keys. 
44
45 1 Wolfgang Wiedmeyer
h2. Output files
46
47
The produced files are located at:
48 2 Wolfgang Wiedmeyer
* built target images: @out/dist/@
49 1 Wolfgang Wiedmeyer
* built host tools: @out/host/linux-x86/bin/@