Project

General

Profile

SourceCode » History » Version 20

Paul Kocialkowski, 10/05/2014 09:49 AM

1 10 Paul Kocialkowski
h1. Replicant Sources
2 1 Paul Kocialkowski
3 2 Paul Kocialkowski
h2. Browsing the source
4
5
The Replicant source code is currently hosted at Gitorious: https://gitorious.org/replicant 
6
There is a branch per Replicant version, like @replicant-2.2@.
7
8 20 Paul Kocialkowski
h2. Disk space
9
10
Before downloading the Replicant source code, make sure there is a considerable amount of disk space left on the drive you intent to build Replicant on.
11
It is advised to have 40-50GiB available for the Replicant source code and the produced files.
12
13 1 Paul Kocialkowski
h2. Code tree location
14
15 8 Linus Drumbler
Start by defining the place where you want to download Replicant tree.
16
17
*Important: the name of the path to this location must not contain spaces!*
18 1 Paul Kocialkowski
19
h2. Installing the tools
20
21
Then, download the @repo@ tool and set it executable:
22 13 Denis 'GNUtoo' Carikli
23 1 Paul Kocialkowski
<pre>
24
mkdir tools
25
cd tools
26 7 Paul Kocialkowski
wget http://commondatastorage.googleapis.com/git-repo-downloads/repo
27 1 Paul Kocialkowski
chmod a+x repo
28
cd ../
29
</pre>
30
31
h2. Getting the source manifest
32
33 16 Paul Kocialkowski
The source manifest is the list of all the git repositories that are present in the Replicant tree.
34
Each Replicant version has a dedicated branch with the proper source manifest.
35 14 Denis 'GNUtoo' Carikli
36
h3. Replicant 4.2
37 1 Paul Kocialkowski
38 15 Denis 'GNUtoo' Carikli
<pre>
39 11 Paul Kocialkowski
mkdir replicant-4.2
40
cd replicant-4.2
41
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.2
42
</pre>
43
44 4 Paul Kocialkowski
h3. Replicant 4.0
45
46
<pre>
47
mkdir replicant-4.0
48
cd replicant-4.0
49
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-4.0
50
</pre>
51
52 1 Paul Kocialkowski
h3. Replicant 2.3
53
54
<pre>
55
mkdir replicant-2.3
56
cd replicant-2.3
57
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.3
58
</pre>
59
60
h3. Replicant 2.2
61
62
<pre>
63
mkdir replicant-2.2
64
cd replicant-2.2
65
../tools/repo init -u git://gitorious.org/replicant/manifest.git -b replicant-2.2
66
</pre>
67
68 3 Paul Kocialkowski
h2. Downloading/Updating the source from the repos
69 1 Paul Kocialkowski
70 9 Linus Drumbler
Now that you have configured the repository to use a manifest, you can start downloading Replicant sources for the desired version.
71 1 Paul Kocialkowski
72 9 Linus Drumbler
*This step is very long and can take the whole day to complete!*
73
74 1 Paul Kocialkowski
<pre>
75
../tools/repo sync
76
</pre>
77 3 Paul Kocialkowski
78 9 Linus Drumbler
Depending on your internet bandwidth, using the @-j@ argument may speed up the process (if you encounter errors, retry without the @-j@ argument):
79 5 Paul Kocialkowski
80
<pre>
81
../tools/repo sync -j9
82
</pre>
83
84 19 Taro K.
Once the source is ready, you need to get the prebuilt applications (they are downloaded from F-Droid):
85 17 Paul Kocialkowski
<pre>
86
vendor/replicant/get-prebuilts
87 18 Taro K.
</pre>
88
89 17 Paul Kocialkowski
You must redo these steps each time you want to sync your tree, in order to keep it up to date. Future syncs are faster than the first one.