SourceCode » History » Version 26
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 | 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 | 26 | Paul Kocialkowski | h2. Initializing the repository |
| 30 | 1 | Paul Kocialkowski | |
| 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 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/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 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/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 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/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 | 26 | Paul Kocialkowski | ../tools/repo init -u git://git.replicant.us/manifest.git -b replicant-2.2 |
| 64 | 1 | Paul Kocialkowski | </pre> |
| 65 | |||
| 66 | 26 | Paul Kocialkowski | h2. Downloading/Updating the source code |
| 67 | 1 | Paul Kocialkowski | |
| 68 | 26 | Paul Kocialkowski | Now that you have configured @repo@, you can start downloading Replicant sources for the desired version. |
| 69 | 3 | Paul Kocialkowski | |
| 70 | 26 | Paul Kocialkowski | *This step is very long and can take hours to complete!* |
| 71 | 5 | Paul Kocialkowski | |
| 72 | <pre> |
||
| 73 | ../tools/repo sync |
||
| 74 | </pre> |
||
| 75 | |||
| 76 | 26 | Paul Kocialkowski | Once the source code is ready, you need to get the prebuilt applications (they are downloaded from F-Droid): |
| 77 | 17 | Paul Kocialkowski | <pre> |
| 78 | vendor/replicant/get-prebuilts |
||
| 79 | 18 | Taro K. | </pre> |
| 80 | |||
| 81 | 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. |