SourceCode » History » Version 27
Paul Kocialkowski, 06/30/2015 09:38 PM
1 | 25 | Paul Kocialkowski | h1. Replicant source code |
---|---|---|---|
2 | 1 | Paul Kocialkowski | |
3 | 25 | Paul Kocialkowski | h2. Browsing the source code |
4 | 2 | Paul Kocialkowski | |
5 | 26 | Paul Kocialkowski | The Replicant source code is currently hosted by the "FSF":https://www.fsf.org/ at: https://git.replicant.us/ |
6 | 27 | Paul Kocialkowski | |
7 | There is one branch per Replicant version, such as @replicant-2.2@. |
||
8 | 2 | Paul Kocialkowski | |
9 | 20 | Paul Kocialkowski | h2. Disk space |
10 | |||
11 | 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. |
||
12 | It is advised to have 40-50GiB available for the Replicant source code and the produced files. |
||
13 | |||
14 | 23 | Paul Kocialkowski | h2. Source tree root folder |
15 | 1 | Paul Kocialkowski | |
16 | 23 | Paul Kocialkowski | The path to the source tree root folder *must not contain spaces*. |
17 | 1 | Paul Kocialkowski | |
18 | h2. Installing the tools |
||
19 | |||
20 | Then, download the @repo@ tool and set it executable: |
||
21 | 13 | Denis 'GNUtoo' Carikli | |
22 | 1 | Paul Kocialkowski | <pre> |
23 | mkdir tools |
||
24 | cd tools |
||
25 | 7 | Paul Kocialkowski | wget http://commondatastorage.googleapis.com/git-repo-downloads/repo |
26 | 1 | Paul Kocialkowski | chmod a+x repo |
27 | cd ../ |
||
28 | </pre> |
||
29 | |||
30 | 26 | Paul Kocialkowski | h2. Initializing the repository |
31 | 1 | Paul Kocialkowski | |
32 | 16 | Paul Kocialkowski | The source manifest is the list of all the git repositories that are present in the Replicant tree. |
33 | Each Replicant version has a dedicated branch with the proper source manifest. |
||
34 | 14 | Denis 'GNUtoo' Carikli | |
35 | h3. Replicant 4.2 |
||
36 | 1 | Paul Kocialkowski | |
37 | 15 | Denis 'GNUtoo' Carikli | <pre> |
38 | 11 | Paul Kocialkowski | mkdir replicant-4.2 |
39 | cd replicant-4.2 |
||
40 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/manifest.git -b replicant-4.2 |
41 | 11 | Paul Kocialkowski | </pre> |
42 | |||
43 | 4 | Paul Kocialkowski | h3. Replicant 4.0 |
44 | |||
45 | <pre> |
||
46 | mkdir replicant-4.0 |
||
47 | cd replicant-4.0 |
||
48 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/manifest.git -b replicant-4.0 |
49 | 4 | Paul Kocialkowski | </pre> |
50 | |||
51 | 1 | Paul Kocialkowski | h3. Replicant 2.3 |
52 | |||
53 | <pre> |
||
54 | mkdir replicant-2.3 |
||
55 | cd replicant-2.3 |
||
56 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/manifest.git -b replicant-2.3 |
57 | 1 | Paul Kocialkowski | </pre> |
58 | |||
59 | h3. Replicant 2.2 |
||
60 | |||
61 | <pre> |
||
62 | mkdir replicant-2.2 |
||
63 | cd replicant-2.2 |
||
64 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/manifest.git -b replicant-2.2 |
65 | 1 | Paul Kocialkowski | </pre> |
66 | |||
67 | 26 | Paul Kocialkowski | h2. Downloading/Updating the source code |
68 | 1 | Paul Kocialkowski | |
69 | 26 | Paul Kocialkowski | Now that you have configured @repo@, you can start downloading Replicant sources for the desired version. |
70 | 3 | Paul Kocialkowski | |
71 | 26 | Paul Kocialkowski | *This step is very long and can take hours to complete!* |
72 | 5 | Paul Kocialkowski | |
73 | <pre> |
||
74 | ../tools/repo sync |
||
75 | </pre> |
||
76 | |||
77 | 26 | Paul Kocialkowski | Once the source code is ready, you need to get the prebuilt applications (they are downloaded from F-Droid): |
78 | 17 | Paul Kocialkowski | <pre> |
79 | vendor/replicant/get-prebuilts |
||
80 | 18 | Taro K. | </pre> |
81 | |||
82 | 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. |