feat:sched_support

This commit is contained in:
dichgrem
2025-10-09 10:45:27 +08:00
parent 1b9fec2bb3
commit e7b2b4892a
2 changed files with 23 additions and 4 deletions

View File

@@ -13,6 +13,11 @@ on:
required: false
default: "false"
type: boolean
enable_sched:
description: "Enable SCHED support"
required: false
default: "false"
type: boolean
enable_susfs:
description: "Enable SUSFS support"
required: false
@@ -212,11 +217,11 @@ jobs:
cp ../SukiSU_patch/other/zram/zram_patch/6.1/lz4kd.patch ./
echo "正在打lz4kd补丁"
patch -p1 -F 3 < lz4kd.patch || true
echo "lz4kd_patch完成"
echo "lz4kd_patch完成"
cp ../SukiSU_patch/other/zram/zram_patch/6.1/lz4k_oplus.patch ./
echo "正在打lz4k_oplus补丁"
patch -p1 -F 3 < lz4k_oplus.patch || true
echo "lz4k_oplus_patch完成"
echo "lz4k_oplus_patch完成"
cd "$WORKDIR/$KERNEL_DIR"
@@ -267,6 +272,19 @@ jobs:
echo " Susfs patches skipped"
fi
- name: Enable SCHED support
run: |
if [ "${{ inputs.enable_sched }}" = "true" ]; then
cd $GITHUB_WORKSPACE/kernel/android_kernel_oneplus_sm8650
git clone https://github.com/HanKuCha/sched_ext.git
cp -r ./sched_ext/* ./kernel/sched
rm -rf ./sched_ext/.git
echo "✅ SCHED 应用成功"
cd ./kernel/sched
ls -la
else
echo " SCHED skipped"
fi
- name: Build kernel
run: |
@@ -284,7 +302,7 @@ jobs:
# 默认 LTO 为 thin
export LTO="${{ inputs.lto_solution || 'thin' }}"
echo "LTO mode: $LTO"
echo "LTO mode: $LTO"
# 工具链路径
export CLANG_PATH="$WORKDIR/clang-r547379"

View File

@@ -18,7 +18,8 @@
- Use clang-r547379
- Enable ThinLTO/FullLTO to build
- Enable Root support : kernelsu/SukiSU/kernelsu-next
- Enable Susfs support : You can build susfs into kernel
- Enable SCHED support : Enable Fengchi scx scheduling
- Enable SUSFS support : You can build susfs into kernel
- Enable BBR support : Enable bbr congestion control algorithm
- Enable ZRAM support : Enable extra zram algorithm(LZ4KD/LZ4K_oplus)
- Enable Anykernel3 support : Packaged as a zip package of anykernel3