diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2019-07-14 13:40:44 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2019-07-14 13:41:23 -0400 |
| commit | 0cd29b55b3f5ed151db6cfe199be2571bc977525 (patch) | |
| tree | bef78870d9d9ff6669a099c773faefd5cf1b3657 /static | |
| parent | 5390068e37feb99d521e88c0c35728eab68ea407 (diff) | |
improve kernel build documentation
Diffstat (limited to 'static')
| -rw-r--r-- | static/build.html | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/static/build.html b/static/build.html index b5252991..20a8e55f 100644 --- a/static/build.html +++ b/static/build.html @@ -252,10 +252,29 @@ git am ../*.patch</pre> <p>The kernel needs to be built in advance, since it uses a separate build system.</p> + <p>List of kernels corresponding to officially supported devices:</p> + + <ul> + <li>Pixel, Pixel XL: marlin - shared build</li> + <li>Pixel 2, Pixel 2 XL: wahoo - split build due to hardening</li> + <li>Pixel 3, Pixel 3 XL: crosshatch - split build due to hardening</li> + <li>Pixel 3a, Pixel 3a XL: bonito - shared build</li> + </ul> + + <p>As part of the hardening in GrapheneOS, it uses fully monolithic kernel builds with + dynamic kernel modules disabled. This improves the effectiveness of mitigations like + Control Flow Integrity benefiting from whole program analysis. It also reduces attack + surface and complexity somewhat including making the build system simpler. The kernel + trees marked as using a split build above need to have the device variant passed to + the GrapheneOS kernel build script to select the device.</p> + <p>For the Pixel 3, Pixel 3 XL, Pixel 3a and Pixel 3a XL, the kernel repository uses submodules for building in out-of-tree modules. You need to make sure the submodule sources are updated before building. In the future, this should end up being handled - automatically by <code>repo</code>.</p> + automatically by <code>repo</code>. There's no harm in running the submodule commands + for other devices as they will simply not do anything.</p> + + <p>For example, to build the kernel for marlin:</p> <p>For example, to build the kernel for blueline:</p> |
