GenericReplicant60Build » History » Version 7
Denis 'GNUtoo' Carikli, 12/13/2019 05:29 PM
Use the new build script
| 1 | 2 | Denis 'GNUtoo' Carikli | h1. Build Replicant 6.0 |
|---|---|---|---|
| 2 | 1 | Denis 'GNUtoo' Carikli | |
| 3 | 2 | Denis 'GNUtoo' Carikli | This page explains how to build Replicant 6.0 for supported devices. |
| 4 | 1 | Denis 'GNUtoo' Carikli | |
| 5 | h2. Prerequisites |
||
| 6 | |||
| 7 | Before building, you must make sure that: |
||
| 8 | 6 | Denis 'GNUtoo' Carikli | * You have installed the build dependencies: [[Replicant60BuildDependenciesInstallation|Replicant 6.0 build dependencies installation]] |
| 9 | 1 | Denis 'GNUtoo' Carikli | * You have downloaded Replicant 6.0 sources: [[ReplicantSourceCode]] |
| 10 | * Your sources are up to date: [[ReplicantSourceCode#DownloadingUpdating-the-source-code|Downloading/Updating the source from the repos]] |
||
| 11 | * Your terminal is running in the directory where the sources were downloaded |
||
| 12 | |||
| 13 | h2. Warning |
||
| 14 | |||
| 15 | *Do not build as root, always build as user.* |
||
| 16 | |||
| 17 | See the [[BuildTips|build tips]] if you are facing issues. |
||
| 18 | |||
| 19 | 4 | Denis 'GNUtoo' Carikli | h2. Before building |
| 20 | |||
| 21 | * On Debian stretch, building the toolchain will fail. See [[Replicant60BuildTips#usrbinsed-usrbinmkdir-usrbinmkdir-No-such-file-or-directory]] for how to workaround that and make the build succeed. |
||
| 22 | |||
| 23 | 1 | Denis 'GNUtoo' Carikli | h2. Building |
| 24 | |||
| 25 | All of the following build commands need to be run in the source tree root folder. |
||
| 26 | |||
| 27 | 5 | Denis 'GNUtoo' Carikli | h3. Building the toolchain |
| 28 | |||
| 29 | First, the toolchain needs to be built for replicant 6. To do that *open a new shell* and run the following command: |
||
| 30 | 1 | Denis 'GNUtoo' Carikli | <pre> |
| 31 | ./vendor/replicant/build-toolchain |
||
| 32 | </pre> |
||
| 33 | |||
| 34 | 5 | Denis 'GNUtoo' Carikli | h2. Building a Replicant image for a device |
| 35 | 1 | Denis 'GNUtoo' Carikli | |
| 36 | 7 | Denis 'GNUtoo' Carikli | Once the toolchain has been built, you can then start building an image for a specific device. |
| 37 | 1 | Denis 'GNUtoo' Carikli | |
| 38 | 7 | Denis 'GNUtoo' Carikli | Use the command corresponding to your device in this table to do that: |
| 39 | 2 | Denis 'GNUtoo' Carikli | |
| 40 | 7 | Denis 'GNUtoo' Carikli | |_. Device(s) |_. Command | |
| 41 | | Galaxy S 2 (I9100) | ./vendor/replicant/build.sh i9100 | |
||
| 42 | | Galaxy S 3 (I9300) | ./vendor/replicant/build.sh i9300 | |
||
| 43 | | Galaxy S 3 4G (I9305) | ./vendor/replicant/build.sh i9305 | |
||
| 44 | | Galaxy Note (N7000) | ./vendor/replicant/build.sh n7000 | |
||
| 45 | | Galaxy Note 2 (N7100) | ./vendor/replicant/build.sh n7100 | |
||
| 46 | | Galaxy Nexus (I9250) | ./vendor/replicant/build.sh maguro | |
||
| 47 | | Galaxy Tab 2 7.0 (P3100) |/2. ./vendor/replicant/build.sh espresso3g | |
||
| 48 | 2 | Denis 'GNUtoo' Carikli | | Galaxy Tab 2 10.1 (P5100) | |
| 49 | 7 | Denis 'GNUtoo' Carikli | | Galaxy Tab 2 7.0 Wi-Fi (P3110) |/2. ./vendor/replicant/build.sh espressowifi | |
| 50 | 2 | Denis 'GNUtoo' Carikli | | Galaxy Tab 2 10.1 Wi-Fi (P5110) | |
| 51 | 7 | Denis 'GNUtoo' Carikli | | Galaxy Note 8.0 (N5100) | ./vendor/replicant/build.sh n5100 | |
| 52 | | Galaxy Note 8.0 Wi-Fi (N5110) | ./vendor/replicant/build.sh n5110 | |
||
| 53 | 2 | Denis 'GNUtoo' Carikli | |
| 54 | For instance to build for the Galaxy S3 (I9300) you need to type the following command: |
||
| 55 | 1 | Denis 'GNUtoo' Carikli | <pre> |
| 56 | 7 | Denis 'GNUtoo' Carikli | ./vendor/replicant/build.sh i9300 |
| 57 | 1 | Denis 'GNUtoo' Carikli | </pre> |
| 58 | |||
| 59 | 7 | Denis 'GNUtoo' Carikli | The first time you build an image it might ask you a few questions at various points during the build process as it needs then to build the images and generate the necessary signing keys near the end of the building process. |
| 60 | 1 | Denis 'GNUtoo' Carikli | |
| 61 | h2. Output files |
||
| 62 | |||
| 63 | 3 | Denis 'GNUtoo' Carikli | For the built host tools, the produced files are at: @out/host/linux-x86/bin/@ |
| 64 | |||
| 65 | For the built target images, you can use the following table to find the directory that has the produced files: |
||
| 66 | |||
| 67 | |_. Output directory |_. Device(s) | |
||
| 68 | | out/dist/i9100/ | Galaxy S 2 (I9100) | |
||
| 69 | | out/dist/i9300/ | Galaxy S 3 (I9300) | |
||
| 70 | | out/dist/i9305/ | Galaxy S 3 4G (I9305) | |
||
| 71 | | out/dist/n7000/ | Galaxy Note (N7000) | |
||
| 72 | | out/dist/n7100/ | Galaxy Note 2 (N7100) | |
||
| 73 | | out/dist/maguro/ | Galaxy Nexus (I9250) | |
||
| 74 | |/2. out/dist/espresso3g/ | Galaxy Tab 2 7.0 (P3100) | |
||
| 75 | | Galaxy Tab 2 10.1 (P5100) | |
||
| 76 | |/2. out/dist/espressowifi/ | Galaxy Tab 2 7.0 Wi-Fi (P3110) | |
||
| 77 | | Galaxy Tab 2 10.1 Wi-Fi (P5110) | |
||
| 78 | | out/dist/n5100/ | Galaxy Note 8.0 (N5100) | |
||
| 79 | | out/dist/n5110/ | Galaxy Note 8.0 Wi-Fi (N5110) | |
||
| 80 | |||
| 81 | For instance, for the Galaxy S 3 (I9300), the built target images are in @out/dist/i9300/@ |