en Configuring the YML File - JackA1ltman/NonGKI_Kernel_Build_2nd GitHub Wiki

Configuring the YML File

Build with Actions ยท Step 2

Required Fields

Field Description Example
DEVICE_NAME Device name and model oneplus_8
DEVICE_CODENAME Device codename polaris
KERNEL_SOURCE Kernel source Git URL
KERNEL_BRANCH Kernel source branch
DEFCONFIG_NAME Full defconfig name (relative to arch/arm64/configs/) vendor/mi845_defconfig

Runner / Container Configuration

Field Options
runs-on ubuntu-latest / ubuntu-24.04 / ubuntu-22.04
container ubuntu:focal (20.04) / archlinux / archlinux:latest

Minimal Configuration for Personal Use

If you are building just for yourself, you typically only need to set the following variables:

  • EXTRA_CMDS (build flags, e.g. LD=ld.lld LLVM=1 LLVM_IAS=1)
  • KERNEL_SOURCE and KERNEL_BRANCH
  • CLANG_SOURCE and CLANG_BRANCH
  • DEFCONFIG_NAME
  • KERNELSU_AUTO_GET and KERNELSU_AUTO_FORK
  • SUSFS_ENABLE, SUSFS_FIXED, PATCHES_SOURCE, PATCHES_BRANCH, SUSFS_FOLDER_FIXED, SUSFS_PATCH_FIXED

Adding Extra Build Steps

If the kernel requires additional shell commands before compilation, add them here:

- name: ๐Ÿช› Extra Kernel Options
  run: |
    # your shell commands here