Project

General

Profile

GalaxySI9000Build » History » Version 5

Paul Kocialkowski, 01/20/2014 03:55 PM

1 5 Paul Kocialkowski
h1. Galaxy S (I9000) Build
2 1 Paul Kocialkowski
3 5 Paul Kocialkowski
This explains how to build Replicant for the Galaxy S (I9000).
4 1 Paul Kocialkowski
5
h2. Prerequisites
6
7 5 Paul Kocialkowski
Before building, you must make sure that:
8 1 Paul Kocialkowski
* You have installed the [[BuildDependencies]]
9 5 Paul Kocialkowski
* You have downloaded Replicant 4.2 sources: [[ReplicantSources]]
10
* Your sources are up to date: [[ReplicantSources#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 1 Paul Kocialkowski
 
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
<pre>
21
source build/envsetup.sh
22 5 Paul Kocialkowski
lunch replicant_galaxysmtd-userdebug
23 1 Paul Kocialkowski
export ANDROID_JAVA_HOME=$JAVA_HOME
24
</pre>
25
26
Start the build:
27
<pre>
28 2 Paul Kocialkowski
parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | bc)
29 5 Paul Kocialkowski
make -j$parallel_tasks bacon
30 1 Paul Kocialkowski
</pre>
31
32
The -jn argument is to indicate the number of parallel tasks during the build. 
33
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@.
34
35
h2. Output files
36
37 5 Paul Kocialkowski
The produced files are located at:
38
* built target images: @out/target/product/crespo/@
39 1 Paul Kocialkowski
* built host tools: @out/host/linux-x86/bin/@