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