From e7b2b4892ad43f58c8cd8ddc22a4f52e0a17b220 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Thu, 9 Oct 2025 10:45:27 +0800 Subject: [PATCH] feat:sched_support --- .github/workflows/build-gki-kernel.yml | 24 +++++++++++++++++++++--- README.md | 3 ++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-gki-kernel.yml b/.github/workflows/build-gki-kernel.yml index 87505e9..5c5da83 100644 --- a/.github/workflows/build-gki-kernel.yml +++ b/.github/workflows/build-gki-kernel.yml @@ -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" diff --git a/README.md b/README.md index 7ed4dff..3bab3f1 100644 --- a/README.md +++ b/README.md @@ -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