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