KernelBuild » History » Version 5
Denis 'GNUtoo' Carikli, 02/03/2016 05:06 PM
1 | 1 | Denis 'GNUtoo' Carikli | h1. KernelBuild |
---|---|---|---|
2 | |||
3 | 2 | Denis 'GNUtoo' Carikli | h2. Use case |
4 | |||
5 | Building a kernel aside Replicant, is faster to setup and faster to build since you need to fetch and use the huge Android build system. |
||
6 | |||
7 | Users wanting to add a driver to their kernel, or developers that want to work on kernel related areas can do that to speed up the development process, however if the changes are integrated back into Replicant, they will automatically be built by the Android build system, when building images. |
||
8 | |||
9 | 4 | Denis 'GNUtoo' Carikli | h2. Dependencies |
10 | 1 | Denis 'GNUtoo' Carikli | |
11 | 4 | Denis 'GNUtoo' Carikli | Since you are not compiling any userspace applications, you don't need the Android build system. The Linux Kenrel, and Bootloaders such as uboot can be built without the Android build system. |
12 | |||
13 | The Trisquel ARM version of gcc seem to work well. |
||
14 | |||
15 | 1 | Denis 'GNUtoo' Carikli | If you use distributions such as Parabola, this will probably not work because the arm-none-eabi-gcc is too recent for many devices kernels. |
16 | |||
17 | 4 | Denis 'GNUtoo' Carikli | To workaround that you can install Trisquel in a container. |
18 | This way it will have very few CPU and memory overhead compared to a virtual machine. |
||
19 | It will also save disk space since you can just store the Trisquel rootfs in any directory. |
||
20 | |||
21 | h2. Example under Trisquel |
||
22 | |||
23 | 5 | Denis 'GNUtoo' Carikli | First download the following example images: |
24 | * http://ftp-osl.osuosl.org/pub/replicant/images/replicant-4.2/0004/images/crespo/replicant-4.2-crespo.zip.asc |
||
25 | * http://ftp-osl.osuosl.org/pub/replicant/images/replicant-4.2/0004/images/crespo/replicant-4.2-crespo.zip |
||
26 | |||
27 | As usual, verify the signature: |
||
28 | <pre> gpg --verify replicant-4.2-crespo.zip.asc </pre> |
||
29 | |||
30 | 1 | Denis 'GNUtoo' Carikli | <pre> |
31 | 4 | Denis 'GNUtoo' Carikli | $ git clone https://git.replicant.us/replicant/kernel_samsung_crespo.git |
32 | 1 | Denis 'GNUtoo' Carikli | </pre> |