From 7a684a35091c1005675cc48f8493371e663a0ef6 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 14 Feb 2025 10:07:58 -0500 Subject: [PATCH] begin unification of Pixel kernel build instructions This can be fully unified for 6th through 9th generation Pixels with Android 15 QPR2 due to 6th through 8th generation Pixels moving to the 6.1 LTS kernel branch. --- static/build.html | 122 +++++++++++++++--------------------------- static/js/redirect.js | 2 + 2 files changed, 46 insertions(+), 78 deletions(-) diff --git a/static/build.html b/static/build.html index 0572aee0..5bc78eb5 100644 --- a/static/build.html +++ b/static/build.html @@ -87,7 +87,7 @@
  • 9th generation Pixels
  • 8th generation Pixels
  • 7th generation Pixels
  • -
  • 6th generation Pixels
  • +
  • 6th and 7th generation Pixels
  • 5th generation Pixels
  • 4th generation Pixels
  • @@ -792,21 +792,22 @@ cd android/kernel/pixel repo init -u https://github.com/GrapheneOS/kernel_manifest-pixel.git -b 15 repo sync -j8 -

    To build the caimito kernel for the Pixel 9, Pixel 9 Pro and Pixel 9 Pro XL:

    +

    Select the correct kernel codename for the device model:

    -
    ./build_caimito.sh --config=no_download_gki --config=no_download_gki_fips140 --lto=full
    + + +

    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/caimito-kernels/6.1/grapheneos/ with your build in - out/caimito/dist/.

    - -

    To build the comet kernel for the Pixel 9 Pro Fold:

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

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

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

    @@ -819,25 +820,25 @@ cd android/kernel/zuma repo init -u https://github.com/GrapheneOS/kernel_manifest-zuma.git -b 15 repo sync -j8 -

    To build the shusky kernel for the Pixel 8 and Pixel 8 Pro:

    +

    Select the correct kernel codename for the device model:

    -
    ./build_shusky.sh --config=no_download_gki --lto=full
    + + +

    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/shusky-kernels/5.15/grapheneos/ with your build in - out/shusky/dist/.

    - -

    To build the akita kernel for the Pixel 8a:

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

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

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

    -
    -

    7th generation Pixels

    +
    +

    6th and 7th generation Pixels

    To sync the kernel sources:

    @@ -846,60 +847,25 @@ cd android/kernel/gs repo init -u https://github.com/GrapheneOS/kernel_manifest-gs.git -b 15 repo sync -j8 -

    To build the pantah kernel for the Pixel 7 and Pixel 7 Pro:

    +

    Select the correct kernel codename for the device model:

    -
    BUILD_AOSP_KERNEL=1 LTO=full ./build_cloudripper.sh
    +
      +
    • felix: felix
    • +
    • tangorpro: tangorpro
    • +
    • lynx: lynx
    • +
    • cheetah: pantah
    • +
    • panther: pantah
    • +
    • bluejay: bluejay
    • +
    • raven: raviole
    • +
    • oriole: raviole
    • +
    + +

    To build the kernel and modules:

    + +
    BUILD_AOSP_KERNEL=1 LTO=full ./build_codename.sh

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

    - -

    To build the lynx kernel for the Pixel 7a:

    - -
    BUILD_AOSP_KERNEL=1 LTO=full ./build_lynx.sh
    - -

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

    - -

    To build the tangorpro kernel for the Pixel Tablet:

    - -
    BUILD_AOSP_KERNEL=1 LTO=full ./build_tangorpro.sh
    - -

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

    - -

    To build the felix kernel for the Pixel Fold:

    - -
    BUILD_AOSP_KERNEL=1 LTO=full ./build_felix.sh
    - -

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

    -
    - -
    -

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

    To build the raviole kernel for the Pixel 6 and Pixel 6 Pro:

    - -
    BUILD_AOSP_KERNEL=1 LTO=full ./build_slider.sh
    - -

    To build the bluejay kernel for the Pixel 6a:

    - -
    BUILD_AOSP_KERNEL=1 LTO=full ./build_bluejay.sh
    - -

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

    diff --git a/static/js/redirect.js b/static/js/redirect.js index d63455a5..764292ee 100644 --- a/static/js/redirect.js +++ b/static/js/redirect.js @@ -36,6 +36,8 @@ 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"], // legacy devices ["/releases#marlin-stable", "/faq#legacy-devices"],