From 8ca256cadc0aeb1f978b78b2b93ddd371bed8872 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 5 Mar 2025 07:38:26 -0500 Subject: [PATCH] Android 15 QPR2 build instruction updates update build guide kernel branch --- static/build.html | 91 ++++++++++--------------------------------- static/js/redirect.js | 7 +++- 2 files changed, 25 insertions(+), 73 deletions(-) diff --git a/static/build.html b/static/build.html index a59bce15..b1d00643 100644 --- a/static/build.html +++ b/static/build.html @@ -84,10 +84,7 @@ @@ -310,12 +307,12 @@ source ~/.bashrc

Development branch

-

The 15 branch is the main development branch of GrapheneOS - based on the latest release of Android 15. It will follow along with the - latest monthly and quarterly releases of Android 15. The 15 - branch of GrapheneOS should be used for generic builds including the - emulator, porting to other devices and for non-legacy officially supported - devices.

+

The 15-qpr2 branch is the main development branch of + GrapheneOS based on the latest release of Android 15 QPR2. It will follow + along with the latest monthly and quarterly releases of Android 15 QPR2. The + 15-qpr2 branch of GrapheneOS should be used for generic builds + including the emulator, porting to other devices and for non-legacy + officially supported devices.

The 14 branch is used for the end-of-life Pixel 5a.

@@ -327,11 +324,11 @@ source ~/.bashrc

The 13-coral branch is used for the end-of-life Pixel 4 and Pixel 4 XL.

-

To sync the 15 branch:

+

To sync the 15-qpr2 branch:

-
mkdir grapheneos-15
-cd grapheneos-15
-repo init -u https://github.com/GrapheneOS/platform_manifest.git -b 15
+                        
mkdir grapheneos-15-qpr2
+cd grapheneos-15-qpr2
+repo init -u https://github.com/GrapheneOS/platform_manifest.git -b 15-qpr2
 repo sync -j8

If your network is unreliable and repo sync fails, you can run the @@ -728,7 +725,7 @@ cd ../..

mkdir -p 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

To build the 6.6 kernel image and modules for the emulator:

@@ -743,7 +740,7 @@ repo sync -j8
mkdir -p 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

To build the 6.1 kernel image and modules for the emulator:

@@ -762,7 +759,7 @@ repo sync -j8
mkdir -p 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

To build the arm64 kernel image for microdroid:

@@ -782,14 +779,14 @@ repo sync -j8 out/kernel_x86_64_microdroid/dist/bzImage.

-
-

9th generation Pixels

+
+

6th through 9th generation Pixels

To sync the kernel sources:

mkdir -p 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

Select the correct kernel codename for the device model:

@@ -799,57 +796,9 @@ repo sync -j8
  • komodo: caimito
  • caiman: caimito
  • tokay: caimito
  • - - -

    To build the kernel and modules:

    - -
    ./build_codename.sh --config=no_download_gki --config=no_download_gki_fips140 --lto=full
    - -

    Replace the files in the OS source tree at - device/google/codename-kernels/6.1/grapheneos/ with your build in - out/codename/dist/.

    -
    - -
    -

    8th generation Pixels

    - -

    To sync the kernel sources:

    - -
    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
    - -

    Select the correct kernel codename for the device model:

    - -
    • akita: akita
    • husky: shusky
    • shiba: shusky
    • -
    - -

    To build the kernel and modules:

    - -
    ./build_codename.sh --config=no_download_gki --lto=full
    - -

    Replace the files in the OS source tree at - device/google/codename-kernels/5.15/grapheneos/ with your build in - out/codename/dist/.

    -
    - -
    -

    6th and 7th generation Pixels

    - -

    To sync the kernel sources:

    - -
    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
    - -

    Select the correct kernel codename for the device model:

    - -
    • felix: felix
    • tangorpro: tangorpro
    • lynx: lynx
    • @@ -862,11 +811,11 @@ repo sync -j8

      To build the kernel and modules:

      -
      BUILD_AOSP_KERNEL=1 LTO=full ./build_codename.sh
      +
      ./build_codename.sh --config=no_download_gki --config=no_download_gki_fips140 --lto=full

      Replace the files in the OS source tree at - device/google/codename-kernels/5.10/grapheneos/ with your build in - out/mixed/dist/.

      + device/google/codename-kernels/6.1/grapheneos/ with your build in + out/codename/dist/.

    diff --git a/static/js/redirect.js b/static/js/redirect.js index 764292ee..3689a344 100644 --- a/static/js/redirect.js +++ b/static/js/redirect.js @@ -36,8 +36,11 @@ const redirects = new Map([ ["/install/web#fastboot-as-non-root", "/install/web#flashing-as-non-root"], ["/build#enabling-updatable-apex-components", "/build#apex-components"], - ["/build#kernel-6th-generation-pixels", "/build#kernel-6th-and-7th-generation-pixels"], - ["/build#kernel-7th-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-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 ["/releases#marlin-stable", "/faq#legacy-devices"],