Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
551633b
revert(ksu): "'kernelsu: Add KernelSU v0.9.5' to 'Revert "kernelsu: d…
ketikai May 27, 2026
2c33dea
build(Makefile): Update CFLAGS '-std' to 'gnu99'.
ketikai Oct 6, 2025
49fd35c
chore(.gitignore): Ignore output directory 'out' when git actions.
ketikai Oct 6, 2025
be3fe55
KernelSU: integrate scope-minimized manual hooks
backslashxx Feb 22, 2025
fa97668
KernelSU: Fix module not working
luyanci Jul 22, 2025
1da6f47
build(grus_defconfig): Enable 'CONFIG_KSU' and 'CONFIG_KSU_MANUAL_HOOK'.
ketikai Oct 6, 2025
8f80c99
feat(ksu): 同步 'scope-minimized manual hooks v1.6' 更新。
ketikai Nov 12, 2025
f45c4f9
feat(ksu): 同步 'scope-minimized manual hooks v1.7' 更新。
ketikai Mar 15, 2026
ea70870
feat(ksu): 同步 'scope-minimized manual hooks v1.8' 更新。
ketikai Mar 15, 2026
be69972
feat(ksu): 同步 'scope-minimized manual hooks v1.9' 更新。
ketikai Mar 15, 2026
ef72acc
feat(ksu): 同步 'scope-minimized manual hooks v2.0' 更新。
ketikai Apr 19, 2026
9bc87d5
feat(ksu): 同步 'scope-minimized manual hooks v2.1' 更新。
ketikai May 18, 2026
0622c51
feat(ksu): 同步 'scope-minimized manual hooks v2.2' 更新。
ketikai May 22, 2026
97f18c6
feat(ksu): BACKPORT - 'fs/namespace.c' path_umount。
ketikai May 22, 2026
500d705
feat(ksu): 修复 'hooks.c' 中缺失的必要宏判断。
ketikai May 27, 2026
9f2fea4
feat(ksu): 移除 'hooks.c' 中过时的钩子。
ketikai May 27, 2026
f7338b2
chore(grus_defconfig): 对于 'grus',默认情况下不启用 KSU 集成。
ketikai May 27, 2026
13b89f3
docs(ksu): 新增 'XXKSU' 集成相关文档。
ketikai May 27, 2026
51f4e30
chore(grus_defconfig): 移除在 'grus' 默认配置中添加的所有 'KernelSU' 相关的内容。
ketikai Jul 7, 2026
d389876
chore(.gitignore): 将 '.github' 目录从 '.*' 范围中排除。
ketikai Jul 7, 2026
48504c8
ci(build-kernel): 添加基于 `github-actions` 的构建支持。
ketikai Jul 7, 2026
5549f42
docs(ksu): 更新文档中的格式和过时内容,新增快速构建相关的说明。
ketikai Jul 7, 2026
3a70631
ci(build-kernel): 添加 `workflow_call` 事件的支持,调整和更新输入参数的类型和位置。
ketikai Jul 8, 2026
1836005
ci(build-kernel-ksu): 添加与 `ksu` 相关的自动构建工作流,当任一提交信息以 `feat(ksu)` 为首时触发。
ketikai Jul 8, 2026
7c624bb
ci(build-kernel): 默认不启用 'ksu' 集成。
ketikai Jul 8, 2026
ff2bb14
docs(ksu): 补充文档中与快速构建相关的内容。
ketikai Jul 8, 2026
ade31cc
chore(assamble): 添加快速构建脚本 `assamble` 。
ketikai Jul 10, 2026
bffe7ff
feat(Makefile), fix(Makefile): 提供 `ccache` 支持,修正部分模块中可能错误的指定编译器。
ketikai Jul 10, 2026
20c9f62
ci(build-kernel): 基于快速构建脚本 'assamble' 重构工作流逻辑。
ketikai Jul 10, 2026
980c02a
chore(assamble): 脚本 `assamble` 的缓存相关功能仅在当前环境已安装 `ccache` 的情况下生效。
ketikai Jul 10, 2026
2807a31
ci(build-kernel) fix(build-kernel): 为 `actions/upload-artifact` 启用包含隐…
ketikai Jul 10, 2026
f77e4a8
revert(Makefile): "feat(Makefile), fix(Makefile): 提供 `ccache` 支持,修正部分…
ketikai Jul 13, 2026
90e7bbe
chore(grus_defconfig): 移除在 'grus' 默认配置中无意义的重复项。
ketikai Jul 13, 2026
4afa716
chore(Makefile): 移除 `drivers/media/platform/msm/camera_v2` 下部分 `Makef…
ketikai Jul 13, 2026
ad0d395
chore(scripts) fix(Makefile.clean): 修复 `__clean` 下的对于超长命令处理逻辑。
ketikai Jul 13, 2026
9d8e997
chore(Makefile): 重新支持 `ccache` ,为 `clang` 忽略 `gcc` 专有优化参数 `-fmerge-co…
ketikai Jul 13, 2026
c73c442
chore(.gitignore): 忽略生成自 Bear 的编译数据库 `compile_commands*.json` 。
ketikai Jul 13, 2026
cb7a338
chore(assamble) perf(assamble) feat(assamble): 优化脚本 `assamble` 的部分选项判…
ketikai Jul 13, 2026
ff3f45b
ci(build-kernel) perf(build-kernel) feat(build-kernel): 优化格式和部分选项的默认值…
ketikai Jul 13, 2026
9ff937e
chore(assemble) fix(assemble): 将错误的脚本名称 `assamble` 更正为 `assemble` 。
ketikai Jul 13, 2026
e58091f
ci(build-kernel) fix(build-kernel) feat(build-kernel): 更正错误的命名 `assam…
ketikai Jul 13, 2026
a4b6dea
ci(build-kernel) perf(build-kernel): 为 `wget` 启用 `-nv` 参数以关闭冗余输出。
ketikai Jul 13, 2026
1db7ab2
chore(assemble) feat(assemble): 脚本 `assemble` 的 `--cache` 所指定的目录将作为缓存…
ketikai Jul 14, 2026
9c20257
chore(assemble) feat(assemble): 允许脚本 `assemble` 的选项 `--cache` 和 `--be…
ketikai Jul 14, 2026
ba47e4c
revert(ksu): "feat(ksu): 移除 'hooks.c' 中过时的钩子。"
ketikai Jul 17, 2026
d3134c9
revert(ksu): "feat(ksu): 修复 'hooks.c' 中缺失的必要宏判断。"
ketikai Jul 17, 2026
051b2e0
revert(ksu): "feat(ksu): BACKPORT - 'fs/namespace.c' path_umount。"
ketikai Jul 17, 2026
3f799bf
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v2.2' 更新。"
ketikai Jul 17, 2026
5ca2775
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v2.1' 更新。"
ketikai Jul 17, 2026
f3902af
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v2.0' 更新。"
ketikai Jul 17, 2026
9152c43
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v1.9' 更新。"
ketikai Jul 17, 2026
9a5dc9b
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v1.8' 更新。"
ketikai Jul 17, 2026
1b40400
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v1.7' 更新。"
ketikai Jul 17, 2026
b181137
revert(ksu): "feat(ksu): 同步 'scope-minimized manual hooks v1.6' 更新。"
ketikai Jul 17, 2026
4362ee7
revert(ksu): "KernelSU: Fix module not working"
ketikai Jul 17, 2026
a460a81
revert(ksu): "KernelSU: integrate scope-minimized manual hooks"
ketikai Jul 17, 2026
4138558
chore(grus_defconfig): 修正和移除回退提交带来的冗余配置。
ketikai Jul 17, 2026
e1b3ab6
chore(assemble) feat(assemble): 添加自定义构建配置功能(以 `CONFIG_` 为首)。
ketikai Jul 17, 2026
0a1690e
chore(assemble): 复制内核时不再包含 `vmlinux` 文件。
ketikai Jul 17, 2026
ae9c77b
chore(assemble) fix(assemble): 修复自定义配置中键值无法正确获取的问题。
ketikai Jul 17, 2026
e181dbb
ci(workflows) fix(workflows) feat(build-kernel) feat(select-ksu) refa…
ketikai Jul 17, 2026
265895d
ci(build-kernel-ksu-test) fix(build-kernel-ksu-test): 添加步骤 `release` …
ketikai Jul 17, 2026
2ce7ae6
ci(build-kernel) feat(build-kernel): 添加步骤以支持上传日志到工作流工件。
ketikai Jul 17, 2026
5fb5047
chore(assemble) perf(assemble): 尝试使用更安全的脚本头部配置。
ketikai Jul 17, 2026
dd19f4f
ci(build-kernel) feat(build-kernel): 支持更大的内存需求。
ketikai Jul 18, 2026
67c4ea4
chore(assemble) fix(assemble): 补充未定义的变量。
ketikai Jul 18, 2026
e904176
ci(build-kernel-ksu-test) fix(build-kernel-ksu-test): 添加步骤 `checkout`…
ketikai Jul 18, 2026
16c2ca7
ci(workflows) fix(build-kernel-ksu-test) feat(build-kernel): 修复 `rele…
ketikai Jul 18, 2026
01fd339
ci(workflows) perf(build-kernel) feat(build-kernel): 移除冗余的前置条件。
ketikai Jul 18, 2026
34704a0
chore(assemble) perf(assemble): 更改和整合日志范围。
ketikai Jul 18, 2026
f0d7a6a
ci(workflows) fix(build-kernel): 修复部分步骤中错误的条件表达式写法。
ketikai Jul 26, 2026
f1dcb08
ci(workflows) perf(build-kernel): 精确匹配日志文件后缀。
ketikai Jul 26, 2026
2b3774d
BACKPORT: locking: Introduce __cleanup() based infrastructure
Jul 3, 2026
8eb8dac
mm: fix build breakage after "BACKPORT: locking: Introduce __cleanup(…
acroreiser Jul 3, 2026
5da17b1
BACKPORT: rtmutex: Use waiter::task instead of current in remove_wait…
Niebelungen-D Apr 8, 2026
4b490ea
BACKPORT: futex/requeue: Prevent NULL pointer dereference in remove_w…
AlexNova-ops Jul 4, 2026
9ea3211
BACKPORT: locking/rtmutex: Skip remove_waiter() when waiter is not en…
Jul 4, 2026
a4cff32
docs(ksu): 新增 `ReSuki` 相关内容,更新快速构建用法,移动文档文件 `Documentation` 下。
ketikai Jul 26, 2026
89d11ed
chore(assemble) perf(assemble): 优化日志的输出逻辑。
ketikai Jul 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions .github/workflows/build-kernel-ksu-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Build Kernel With KernelSU [TEST]

on:
push:
branches:
- xxksu
- resuki
- susfs

env:
BASE_BRANCH: ${{ github.event.repository.default_branch }}
CHECK_FLAG: feat(${{ github.ref_name }})
PATCHES_ARTIFACT: ${{ github.ref_name }}-manual-hooks.tar.xz
RELEASE_TAG: prebuilt

jobs:
prepare:
runs-on: ubuntu-latest
env:
PATCHES_DIR: .patches
if: toJson(github.event.commits) != '[]'
outputs:
can_build: ${{ steps.check_flag.outputs.result }}
artifact_id: ${{ steps.upload_patches.outputs.artifact-id }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ env.BASE_BRANCH }}

- name: Check Base
id: check_base
run: |
REF="${{ github.ref_name }}"
echo "head_ref_name=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
git remote set-branches --add origin $REF
git fetch origin $REF
git merge --ff-only origin/$REF

- name: Check Flag
id: check_flag
uses: actions/github-script@v9
with:
script: |
let commits = ${{ toJson(github.event.commits) }}
console.log('commits: ' + commits.length)
for (let i = 0; i < commits.length; i++) {
let message = commits[i].message
console.log(message + '\n---')
if (message.startsWith('${{ env.CHECK_FLAG }}')) {
return true
}
}
return false

- name: Format Patches
if: fromJson(steps.check_flag.outputs.result)
run: |
DIR="${{ env.PATCHES_DIR }}"
mkdir -p "$DIR"
git format-patch -o "$DIR" ${{ steps.check_base.outputs.head_ref_name }}..HEAD
BASE_DIR="$PWD"
pushd "$DIR"
find . ! -type d -printf '%P\0' | tar -cJvf "$BASE_DIR/${{ env.PATCHES_ARTIFACT }}" --null -T -
popd

- name: Upload Patches
id: upload_patches
if: fromJson(steps.check_flag.outputs.result)
uses: actions/upload-artifact@v7
with:
path: |
${{ env.PATCHES_ARTIFACT }}
if-no-files-found: error
retention-days: 1
overwrite: true
include-hidden-files: true
archive: false

select:
uses: ./.github/workflows/select-ksu.yml
needs:
- prepare
if: fromJson(needs.prepare.outputs.can_build)
with:
provider: ${{ github.ref_name }}

build:
uses: ./.github/workflows/build-kernel.yml
needs:
- prepare
- select
secrets: inherit
with:
verbose_logs: true
kernel_localversion: ${{ github.ref_name }}-test
ksu: true
ksu_setup_script: ${{ needs.select.outputs.setup_script }}
ksu_setup_branch: ${{ needs.select.outputs.setup_branch }}
ksu_manual_hooks: ${{ needs.prepare.outputs.artifact_id }}
ksu_custom_env_or_config: ${{ needs.select.outputs.custom_env_or_config }}

release:
runs-on: ubuntu-22.04
needs:
- prepare
- build
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ env.RELEASE_TAG }}

- name: Download Patches
uses: actions/download-artifact@v8
with:
name: ${{ env.PATCHES_ARTIFACT }}

- name: Upload Patches
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload --clobber ${{ env.RELEASE_TAG }} ${{ env.PATCHES_ARTIFACT }}
104 changes: 104 additions & 0 deletions .github/workflows/build-kernel-ksu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Build Kernel With KernelSU

on:
workflow_dispatch:
inputs:
base_on_default_branch:
description: Base On Default Branch
type: boolean
required: false
default: true
verbose_logs:
description: More Detailed Logs
type: boolean
required: false
default: false
kernel_arch:
description: Kernel - Arch
type: string
required: false
default: arm64
kernel_device:
description: Kernel - Device
type: string
required: false
default: grus
kernel_localversion:
description: Kernel - Local Version
type: string
required: false
default: wabby-wabbo
kernel_cross_compile:
description: Kernel - Cross Compile
type: string
required: false
default: aarch64-linux-gnu
kernel_custom_env_or_config:
description: Kernel - Custom ENV / CONFIG
type: string
required: false
default: CROSS_COMPILE_ARM32=arm-linux-gnueabi-
llvm:
description: Use LLVM / Clang
type: boolean
required: false
default: true
prebuilt_clang_toolchain:
description: Prebuilt - Clang Toolchain
type: string
required: false
default: https://github.com/ketikai/android_kernel_xiaomi_sdm710/releases/download/prebuilt/clang-r596125.tar.xz
prebuilt_gcc_toolchain:
description: Prebuilt - GCC Toolchain
type: string
required: false
default: https://github.com/ketikai/android_kernel_xiaomi_sdm710/releases/download/prebuilt/linaro-gcc.tar.xz
ksu_provider:
description: KernelSU - Provider
type: choice
required: false
default: xxksu
options:
- xxksu
- resuki
- susfs
anykernel:
description: Assemble AnyKernel
type: boolean
required: false
default: true
prebuilt_anykernel_package:
description: Prebuilt - AnyKernel Package
type: string
required: false
default: https://github.com/ketikai/android_kernel_xiaomi_sdm710/releases/download/prebuilt/anykernel.tar.xz

jobs:
select:
uses: ./.github/workflows/select-ksu.yml
with:
provider: ${{ inputs.ksu_provider }}

build:
uses: ./.github/workflows/build-kernel.yml
needs:
- select
secrets: inherit
with:
base_on_default_branch: ${{ inputs.base_on_default_branch }}
verbose_logs: ${{ inputs.verbose_logs }}
kernel_arch: ${{ inputs.kernel_arch }}
kernel_device: ${{ inputs.kernel_device }}
kernel_localversion: ${{ inputs.kernel_localversion }}
kernel_cross_compile: ${{ inputs.kernel_cross_compile }}
kernel_custom_env_or_config: ${{ inputs.kernel_custom_env_or_config }}
llvm: ${{ inputs.llvm }}
prebuilt_clang_toolchain: ${{ inputs.prebuilt_clang_toolchain }}
prebuilt_gcc_toolchain: ${{ inputs.prebuilt_gcc_toolchain }}
ksu: true
ksu_setup_script: ${{ needs.select.outputs.setup_script }}
ksu_setup_branch: ${{ needs.select.outputs.setup_branch }}
ksu_manual_hooks: ${{ needs.select.outputs.manual_hooks }}
ksu_custom_env_or_config: ${{ needs.select.outputs.custom_env_or_config }}
anykernel: ${{ inputs.anykernel }}
prebuilt_anykernel_package: ${{ inputs.prebuilt_anykernel_package }}
Loading