mirror of
https://github.com/Dichgrem/GKI-build.git
synced 2025-12-17 22:22:00 -05:00
feat:lto_level
This commit is contained in:
10
.github/workflows/build-gki-kernel.yml
vendored
10
.github/workflows/build-gki-kernel.yml
vendored
@@ -25,6 +25,14 @@ on:
|
|||||||
- kernelsu
|
- kernelsu
|
||||||
- kernelsu-next
|
- kernelsu-next
|
||||||
- none
|
- none
|
||||||
|
lto_solution:
|
||||||
|
description: "Select the level of lto"
|
||||||
|
required: false
|
||||||
|
default: "thin"
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- thin
|
||||||
|
- full
|
||||||
kernel_name:
|
kernel_name:
|
||||||
description: "Custom kernel name (optional)"
|
description: "Custom kernel name (optional)"
|
||||||
required: false
|
required: false
|
||||||
@@ -211,7 +219,7 @@ jobs:
|
|||||||
export KERNEL_DEFCONFIG=config_defconfig
|
export KERNEL_DEFCONFIG=config_defconfig
|
||||||
|
|
||||||
# 默认 LTO 为 thin
|
# 默认 LTO 为 thin
|
||||||
export LTO="${LTO:-thin}"
|
export LTO="${{ inputs.lto_solution || 'thin' }}"
|
||||||
echo "LTO mode: $LTO"
|
echo "LTO mode: $LTO"
|
||||||
|
|
||||||
# 工具链路径
|
# 工具链路径
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Use clang-r547379
|
- Use clang-r547379
|
||||||
- Enable ThinLTO to build
|
- Enable ThinLTO/FullLTO to build
|
||||||
- Enable Root support : kernelsu/SukiSU/kernelsu-next
|
- Enable Root support : kernelsu/SukiSU/kernelsu-next
|
||||||
- Enable Susfs support : You can build susfs into kernel
|
- Enable Susfs support : You can build susfs into kernel
|
||||||
- Enable Anykernel3 support : Packaged as a zip package of anykernel3
|
- Enable Anykernel3 support : Packaged as a zip package of anykernel3
|
||||||
|
|||||||
Reference in New Issue
Block a user