From 7c93554aa96f9cdef2927f5237f62a44875ada0d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 18 Aug 2022 15:49:58 -0400 Subject: [PATCH] add proper sections for kernel build docs --- static/build.html | 72 ++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 29 deletions(-) diff --git a/static/build.html b/static/build.html index 305226a2..21ae2371 100644 --- a/static/build.html +++ b/static/build.html @@ -69,7 +69,14 @@
  • Updating and switching branches or tags
  • -
  • Kernel
  • +
  • + Kernel + +
  • Extracting vendor files for Pixel devices
  • Setting up the OS build environment
  • Reproducible builds
  • @@ -395,62 +402,69 @@ cd ../..

    Instructions for 4th and 5th generation Pixels need to be rewritten for Android 13.

    -

    4th generation Pixels

    +
    +

    4th generation Pixels

    -
    mkdir android/kernel/coral
    +                        
    mkdir android/kernel/coral
     cd android/kernel/coral
     repo init -u https://github.com/GrapheneOS/kernel_coral-manifest.git -b 13
     repo sync -j16
    -

    To build the coral kernel for the Pixel 4 and Pixel 4 XL:

    +

    To build the coral kernel for the Pixel 4 and Pixel 4 XL:

    -
    KBUILD_BUILD_VERSION=1 KBUILD_BUILD_USER=grapheneos KBUILD_BUILD_HOST=grapheneos KBUILD_BUILD_TIMESTAMP="Thu 01 Jan 1970 12:00:00 AM UTC" BUILD_CONFIG=private/msm-google/build.config.floral build/build.sh
    +
    KBUILD_BUILD_VERSION=1 KBUILD_BUILD_USER=grapheneos KBUILD_BUILD_HOST=grapheneos KBUILD_BUILD_TIMESTAMP="Thu 01 Jan 1970 12:00:00 AM UTC" BUILD_CONFIG=private/msm-google/build.config.floral build/build.sh
    -

    To build the sunfish kernel for the Pixel 4a:

    +

    To build the sunfish kernel for the Pixel 4a:

    -
    KBUILD_BUILD_VERSION=1 KBUILD_BUILD_USER=grapheneos KBUILD_BUILD_HOST=grapheneos KBUILD_BUILD_TIMESTAMP="Thu 01 Jan 1970 12:00:00 AM UTC" BUILD_CONFIG=private/msm-google/build.config.sunfish build/build.sh
    +
    KBUILD_BUILD_VERSION=1 KBUILD_BUILD_USER=grapheneos KBUILD_BUILD_HOST=grapheneos KBUILD_BUILD_TIMESTAMP="Thu 01 Jan 1970 12:00:00 AM UTC" BUILD_CONFIG=private/msm-google/build.config.sunfish build/build.sh
    -

    Replace the files in the OS source tree at - device/google/coral-kernel/ or - device/google/sunfish-kernel/ with your build in - out/android-msm-pixel-4.14/dist/.

    +

    Replace the files in the OS source tree at + device/google/coral-kernel/ or + device/google/sunfish-kernel/ with your build in + out/android-msm-pixel-4.14/dist/.

    +
    -

    5th generation Pixels

    +
    +

    5th generation Pixels

    -

    For 5th generation Pixels:

    +

    For 5th generation Pixels:

    -
    mkdir android/kernel/redbull
    +                        
    mkdir android/kernel/redbull
     cd android/kernel/redbull
     repo init -u https://github.com/GrapheneOS/kernel_redbull-manifest.git -b 13
     repo sync -j16
    -

    To build the redbull kernel for the Pixel 4a (5G), Pixel 5 and Pixel 5a kernel:

    +

    To build the redbull kernel for the Pixel 4a (5G), Pixel 5 and Pixel 5a + kernel:

    -
    BUILD_CONFIG=private/msm-google/build.config.redbull.vintf build/build.sh
    +
    BUILD_CONFIG=private/msm-google/build.config.redbull.vintf build/build.sh
    -

    Replace the files in the OS source tree at - device/google/redbull-kernel/ with your build in - out/android-msm-pixel-4.19/dist/.

    +

    Replace the files in the OS source tree at + device/google/redbull-kernel/ with your build in + out/android-msm-pixel-4.19/dist/.

    +
    -

    6th generation Pixels

    +
    +

    6th generation Pixels

    -
    mkdir android/kernel/raviole
    +                        
    mkdir android/kernel/raviole
     cd android/kernel/raviole
     repo init -u https://github.com/GrapheneOS/kernel_raviole-manifest.git -b 13
     repo sync -j16
    -

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

    +

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

    -
    LTO=full BUILD_KERNEL=1 ./build_slider.sh
    +
    LTO=full BUILD_KERNEL=1 ./build_slider.sh
    -

    To build the bluejay kernel for the Pixel 6a:

    +

    To build the bluejay kernel for the Pixel 6a:

    -
    LTO=full BUILD_KERNEL=1 ./build_bluejay.sh
    +
    LTO=full BUILD_KERNEL=1 ./build_bluejay.sh
    -

    Replace the files in the OS source tree at - device/google/raviole-kernel/ or - device/google/bluejay-kernel/ with your build in - out/mixed/dist/.

    +

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

    +