Android 15 QPR2 build instruction updates

update build guide kernel branch
This commit is contained in:
Daniel Micay 2025-03-05 07:38:26 -05:00
parent 9a88d29324
commit 8ca256cadc
2 changed files with 25 additions and 73 deletions

View File

@ -84,10 +84,7 @@
<ul> <ul>
<li><a href="#kernel-emulator">Emulator</a></li> <li><a href="#kernel-emulator">Emulator</a></li>
<li><a href="#kernel-microdroid">Microdroid</a></li> <li><a href="#kernel-microdroid">Microdroid</a></li>
<li><a href="#kernel-9th-generation-pixels">9th generation Pixels</a></li> <li><a href="#kernel-6th-through-9th-generation-pixels">6th through 9th generation Pixels</a></li>
<li><a href="#kernel-8th-generation-pixels">8th generation Pixels</a></li>
<li><a href="#kernel-7th-generation-pixels">7th generation Pixels</a></li>
<li><a href="#kernel-6th-and-7th-generation-pixels">6th and 7th generation Pixels</a></li>
<li><a href="#kernel-5th-generation-pixels">5th generation Pixels</a></li> <li><a href="#kernel-5th-generation-pixels">5th generation Pixels</a></li>
<li><a href="#kernel-4th-generation-pixels">4th generation Pixels</a></li> <li><a href="#kernel-4th-generation-pixels">4th generation Pixels</a></li>
</ul> </ul>
@ -310,12 +307,12 @@ source ~/.bashrc</pre>
<section id="development-branch"> <section id="development-branch">
<h4><a href="#development-branch">Development branch</a></h4> <h4><a href="#development-branch">Development branch</a></h4>
<p>The <code>15</code> branch is the main development branch of GrapheneOS <p>The <code>15-qpr2</code> branch is the main development branch of
based on the latest release of Android 15. It will follow along with the GrapheneOS based on the latest release of Android 15 QPR2. It will follow
latest monthly and quarterly releases of Android 15. The <code>15</code> along with the latest monthly and quarterly releases of Android 15 QPR2. The
branch of GrapheneOS should be used for generic builds including the <code>15-qpr2</code> branch of GrapheneOS should be used for generic builds
emulator, porting to other devices and for non-legacy officially supported including the emulator, porting to other devices and for non-legacy
devices.</p> officially supported devices.</p>
<p>The <code>14</code> branch is used for the end-of-life Pixel 5a.</p> <p>The <code>14</code> branch is used for the end-of-life Pixel 5a.</p>
@ -327,11 +324,11 @@ source ~/.bashrc</pre>
<p>The <code>13-coral</code> branch is used for the end-of-life Pixel 4 <p>The <code>13-coral</code> branch is used for the end-of-life Pixel 4
and Pixel 4 XL.</p> and Pixel 4 XL.</p>
<p>To sync the <code>15</code> branch:</p> <p>To sync the <code>15-qpr2</code> branch:</p>
<pre>mkdir grapheneos-15 <pre>mkdir grapheneos-15-qpr2
cd grapheneos-15 cd grapheneos-15-qpr2
repo init -u https://github.com/GrapheneOS/platform_manifest.git -b 15 repo init -u https://github.com/GrapheneOS/platform_manifest.git -b 15-qpr2
repo sync -j8</pre> repo sync -j8</pre>
<p>If your network is unreliable and <code>repo sync</code> fails, you can run the <p>If your network is unreliable and <code>repo sync</code> fails, you can run the
@ -728,7 +725,7 @@ cd ../..</pre>
<pre>mkdir -p android/kernel/6.6 <pre>mkdir -p android/kernel/6.6
cd android/kernel/6.6 cd android/kernel/6.6
repo init -u https://github.com/GrapheneOS/kernel_manifest-6.6.git -b 15 repo init -u https://github.com/GrapheneOS/kernel_manifest-6.6.git -b 15-qpr2
repo sync -j8</pre> repo sync -j8</pre>
<p>To build the 6.6 kernel image and modules for the emulator:</p> <p>To build the 6.6 kernel image and modules for the emulator:</p>
@ -743,7 +740,7 @@ repo sync -j8</pre>
<pre>mkdir -p android/kernel/6.1 <pre>mkdir -p android/kernel/6.1
cd android/kernel/6.1 cd android/kernel/6.1
repo init -u https://github.com/GrapheneOS/kernel_manifest-6.1.git -b 15 repo init -u https://github.com/GrapheneOS/kernel_manifest-6.1.git -b 15-qpr2
repo sync -j8</pre> repo sync -j8</pre>
<p>To build the 6.1 kernel image and modules for the emulator:</p> <p>To build the 6.1 kernel image and modules for the emulator:</p>
@ -762,7 +759,7 @@ repo sync -j8</pre>
<pre>mkdir -p android/kernel/6.6 <pre>mkdir -p android/kernel/6.6
cd android/kernel/6.6 cd android/kernel/6.6
repo init -u https://github.com/GrapheneOS/kernel_manifest-6.6.git -b 15 repo init -u https://github.com/GrapheneOS/kernel_manifest-6.6.git -b 15-qpr2
repo sync -j8</pre> repo sync -j8</pre>
<p>To build the arm64 kernel image for microdroid:</p> <p>To build the arm64 kernel image for microdroid:</p>
@ -782,14 +779,14 @@ repo sync -j8</pre>
<code>out/kernel_x86_64_microdroid/dist/bzImage</code>.</p> <code>out/kernel_x86_64_microdroid/dist/bzImage</code>.</p>
</section> </section>
<section id="kernel-9th-generation-pixels"> <section id="kernel-6th-through-9th-generation-pixels">
<h4><a href="#kernel-9th-generation-pixels">9th generation Pixels</a></h4> <h4><a href="#kernel-6th-through-9th-generation-pixels">6th through 9th generation Pixels</a></h4>
<p>To sync the kernel sources:</p> <p>To sync the kernel sources:</p>
<pre>mkdir -p android/kernel/pixel <pre>mkdir -p android/kernel/pixel
cd android/kernel/pixel cd android/kernel/pixel
repo init -u https://github.com/GrapheneOS/kernel_manifest-pixel.git -b 15 repo init -u https://github.com/GrapheneOS/kernel_manifest-pixel.git -b 15-qpr2
repo sync -j8</pre> repo sync -j8</pre>
<p>Select the correct kernel codename for the device model:</p> <p>Select the correct kernel codename for the device model:</p>
@ -799,57 +796,9 @@ repo sync -j8</pre>
<li>komodo: caimito</li> <li>komodo: caimito</li>
<li>caiman: caimito</li> <li>caiman: caimito</li>
<li>tokay: caimito</li> <li>tokay: caimito</li>
</ul>
<p>To build the kernel and modules:</p>
<pre>./build_<var>codename</var>.sh --config=no_download_gki --config=no_download_gki_fips140 --lto=full</pre>
<p>Replace the files in the OS source tree at
<code>device/google/<var>codename</var>-kernels/6.1/grapheneos/</code> with your build in
<code>out/<var>codename</var>/dist/</code>.</p>
</section>
<section id="kernel-8th-generation-pixels">
<h4><a href="#kernel-8th-generation-pixels">8th generation Pixels</a></h4>
<p>To sync the kernel sources:</p>
<pre>mkdir -p android/kernel/zuma
cd android/kernel/zuma
repo init -u https://github.com/GrapheneOS/kernel_manifest-zuma.git -b 15
repo sync -j8</pre>
<p>Select the correct kernel codename for the device model:</p>
<ul>
<li>akita: akita</li> <li>akita: akita</li>
<li>husky: shusky</li> <li>husky: shusky</li>
<li>shiba: shusky</li> <li>shiba: shusky</li>
</ul>
<p>To build the kernel and modules:</p>
<pre>./build_<var>codename</var>.sh --config=no_download_gki --lto=full</pre>
<p>Replace the files in the OS source tree at
<code>device/google/<var>codename</var>-kernels/5.15/grapheneos/</code> with your build in
<code>out/<var>codename</var>/dist/</code>.</p>
</section>
<section id="kernel-6th-and-7th-generation-pixels">
<h4><a href="#kernel-6th-and-7th-generation-pixels">6th and 7th generation Pixels</a></h4>
<p>To sync the kernel sources:</p>
<pre>mkdir -p android/kernel/gs
cd android/kernel/gs
repo init -u https://github.com/GrapheneOS/kernel_manifest-gs.git -b 15
repo sync -j8</pre>
<p>Select the correct kernel codename for the device model:</p>
<ul>
<li>felix: felix</li> <li>felix: felix</li>
<li>tangorpro: tangorpro</li> <li>tangorpro: tangorpro</li>
<li>lynx: lynx</li> <li>lynx: lynx</li>
@ -862,11 +811,11 @@ repo sync -j8</pre>
<p>To build the kernel and modules:</p> <p>To build the kernel and modules:</p>
<pre>BUILD_AOSP_KERNEL=1 LTO=full ./build_<var>codename</var>.sh</pre> <pre>./build_<var>codename</var>.sh --config=no_download_gki --config=no_download_gki_fips140 --lto=full</pre>
<p>Replace the files in the OS source tree at <p>Replace the files in the OS source tree at
<code>device/google/<var>codename</var>-kernels/5.10/grapheneos/</code> with your build in <code>device/google/<var>codename</var>-kernels/6.1/grapheneos/</code> with your build in
<code>out/mixed/dist/</code>.</p> <code>out/<var>codename</var>/dist/</code>.</p>
</section> </section>
<section id="kernel-5th-generation-pixels"> <section id="kernel-5th-generation-pixels">

View File

@ -36,8 +36,11 @@ const redirects = new Map([
["/install/web#fastboot-as-non-root", "/install/web#flashing-as-non-root"], ["/install/web#fastboot-as-non-root", "/install/web#flashing-as-non-root"],
["/build#enabling-updatable-apex-components", "/build#apex-components"], ["/build#enabling-updatable-apex-components", "/build#apex-components"],
["/build#kernel-6th-generation-pixels", "/build#kernel-6th-and-7th-generation-pixels"], ["/build#kernel-6th-generation-pixels", "/build#kernel-6th-through-9th-generation-pixels"],
["/build#kernel-7th-generation-pixels", "/build#kernel-6th-and-7th-generation-pixels"], ["/build#kernel-7th-generation-pixels", "/build#kernel-6th-through-9th-generation-pixels"],
["/build#kernel-6th-and-7th-generation-pixels", "/build#kernel-6th-through-9th-generation-pixels"],
["/build#kernel-8th-generation-pixels", "/build#kernel-6th-through-9th-generation-pixels"],
["/build#kernel-9th-generation-pixels", "/build#kernel-6th-through-9th-generation-pixels"],
// legacy devices // legacy devices
["/releases#marlin-stable", "/faq#legacy-devices"], ["/releases#marlin-stable", "/faq#legacy-devices"],