mirror of
https://github.com/JackA1ltman/NonGKI_Kernel_Build_2nd.git
synced 2026-08-19 15:03:40 +08:00
Page:
en Configuring the YML File
Pages
Fork 项目
Home
en Automated Release
en Choosing a Toolchain
en Compiling on a Mobile Device
en Compiling the Kernel
en Compiling the Stock Vendor Kernel
en Configuring the YML File
en Embedding KernelSU and Patching SuSFS
en Fork the Repository
en Hiding Root Common Methods
en Introduction
en Kernel Build FAQ
en Packaging and Flashing
en Requirements
en Running and Downloading Artifacts
en Setting Up the Environment
en Variable Reference
内核编译答疑
利用移动设备编译内核
变量参考
基础需求
嵌入KernelSU和SuSFS修补
序章
打包与刷入
搭建基础环境
编译内核
编译器选择
编译设备厂商原始内核
自动发布
运行与产物
配置 YML 文件
隐藏Root常规方式
No results
1
en Configuring the YML File
JackA1ltman edited this page 2026-04-04 23:24:57 +08:00
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_SOURCEandKERNEL_BRANCHCLANG_SOURCEandCLANG_BRANCHDEFCONFIG_NAMEKERNELSU_AUTO_GETandKERNELSU_AUTO_FORKSUSFS_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
🌐 Language / 语言
📖 English
Local Build
- Setting Up the Environment
- Choosing a Toolchain
- Compiling the Kernel
- Compiling on a Mobile Device
- Compiling the Stock Vendor Kernel
- Embedding KernelSU & Patching SuSFS
- Packaging and Flashing
- Kernel Build FAQ
Build with Actions
- Fork the Repository
- Configuring the YML File
- Variable Reference
- Running and Downloading Artifacts
- Automated Release
Hide Root Trace
📖 中文
基础编译
利用 Action 构建内核
隐藏Root痕迹