add proper sections for kernel build docs

This commit is contained in:
Daniel Micay 2022-08-18 15:49:58 -04:00
parent f6d771dc44
commit 7c93554aa9

View File

@ -69,7 +69,14 @@
</ul> </ul>
</li> </li>
<li><a href="#updating-and-switching-branches-or-tags">Updating and switching branches or tags</a></li> <li><a href="#updating-and-switching-branches-or-tags">Updating and switching branches or tags</a></li>
<li><a href="#kernel">Kernel</a></li> <li>
<a href="#kernel">Kernel</a>
<ul>
<li><a href="#kernel-4th-generation-pixels">4th generation Pixels</a></li>
<li><a href="#kernel-5th-generation-pixels">5th generation Pixels</a></li>
<li><a href="#kernel-6th-generation-pixels">6th generation Pixels</a></li>
</ul>
</li>
<li><a href="#extracting-vendor-files-for-pixel-devices">Extracting vendor files for Pixel devices</a></li> <li><a href="#extracting-vendor-files-for-pixel-devices">Extracting vendor files for Pixel devices</a></li>
<li><a href="#setting-up-the-os-build-environment">Setting up the OS build environment</a></li> <li><a href="#setting-up-the-os-build-environment">Setting up the OS build environment</a></li>
<li><a href="#reproducible-builds">Reproducible builds</a></li> <li><a href="#reproducible-builds">Reproducible builds</a></li>
@ -395,7 +402,8 @@ cd ../..</pre>
<p>Instructions for 4th and 5th generation Pixels need to be rewritten for <p>Instructions for 4th and 5th generation Pixels need to be rewritten for
Android 13.</p> Android 13.</p>
<h4>4th generation Pixels</h4> <section id="kernel-4th-generation-pixels">
<h4><a href="#kernel-4th-generation-pixels">4th generation Pixels</a></h4>
<pre>mkdir android/kernel/coral <pre>mkdir android/kernel/coral
cd android/kernel/coral cd android/kernel/coral
@ -414,8 +422,10 @@ repo sync -j16</pre>
<code>device/google/coral-kernel/</code> or <code>device/google/coral-kernel/</code> or
<code>device/google/sunfish-kernel/</code> with your build in <code>device/google/sunfish-kernel/</code> with your build in
<code>out/android-msm-pixel-4.14/dist/</code>.</p> <code>out/android-msm-pixel-4.14/dist/</code>.</p>
</section>
<h4>5th generation Pixels</h4> <section id="kernel-5th-generation-pixels">
<h4><a href="#kernel-5th-generation-pixels">5th generation Pixels</a></h4>
<p>For 5th generation Pixels:</p> <p>For 5th generation Pixels:</p>
@ -424,15 +434,18 @@ cd android/kernel/redbull
repo init -u https://github.com/GrapheneOS/kernel_redbull-manifest.git -b 13 repo init -u https://github.com/GrapheneOS/kernel_redbull-manifest.git -b 13
repo sync -j16</pre> repo sync -j16</pre>
<p>To build the redbull kernel for the Pixel 4a (5G), Pixel 5 and Pixel 5a kernel:</p> <p>To build the redbull kernel for the Pixel 4a (5G), Pixel 5 and Pixel 5a
kernel:</p>
<pre>BUILD_CONFIG=private/msm-google/build.config.redbull.vintf build/build.sh</pre> <pre>BUILD_CONFIG=private/msm-google/build.config.redbull.vintf build/build.sh</pre>
<p>Replace the files in the OS source tree at <p>Replace the files in the OS source tree at
<code>device/google/redbull-kernel/</code> with your build in <code>device/google/redbull-kernel/</code> with your build in
<code>out/android-msm-pixel-4.19/dist/</code>.</p> <code>out/android-msm-pixel-4.19/dist/</code>.</p>
</section>
<h4>6th generation Pixels</h4> <section id="kernel-6th-generation-pixels">
<h4><a href="#kernel-6th-generation-pixels">6th generation Pixels</a></h4>
<pre>mkdir android/kernel/raviole <pre>mkdir android/kernel/raviole
cd android/kernel/raviole cd android/kernel/raviole
@ -452,6 +465,7 @@ repo sync -j16</pre>
<code>device/google/bluejay-kernel/</code> with your build in <code>device/google/bluejay-kernel/</code> with your build in
<code>out/mixed/dist/</code>.</p> <code>out/mixed/dist/</code>.</p>
</section> </section>
</section>
<section id="extracting-vendor-files-for-pixel-devices"> <section id="extracting-vendor-files-for-pixel-devices">
<h3><a href="#extracting-vendor-files-for-pixel-devices">Extracting vendor files for Pixel devices</a></h3> <h3><a href="#extracting-vendor-files-for-pixel-devices">Extracting vendor files for Pixel devices</a></h3>