kernel: stop printing useless message unless its ddk environment * In-tree build show empty KDIR -- KDIR: -- MDIR: /home/runner/work/KernelSU-Test/KernelSU-Test/kernel_414/KernelSU/kernel AR drivers/iommu/built-in.o CC drivers/input/misc/uinput.o -- KernelSU version: 12329 -- KernelSU: CONFIG_KSU_MANUAL_HOOK -- Supported KernelSU Manager(s): tiann, rsuntk, 5ec1cff CC drivers/kernelsu/ksu.o AR drivers/input/joystick/built-in.o CC drivers/hid/hid-roccat-pyra.o Co-authored-by: Faris <rissu.ntk@gmail.com> Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: Build KernelSU Kernel Module
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
kmi:
|
|
description: 'KMI version'
|
|
required: true
|
|
type: string
|
|
ddk_release:
|
|
description: 'DDK release version'
|
|
required: false
|
|
default: '20251104'
|
|
type: string
|
|
|
|
jobs:
|
|
build-kernelsu-ko:
|
|
name: Build kernelsu.ko for ${{ inputs.kmi }}
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/ylarod/ddk:${{ inputs.kmi }}-${{ inputs.ddk_release }}
|
|
options: --privileged
|
|
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build kernelsu.ko
|
|
run: |
|
|
git config --global --add safe.directory /__w/SukiSU-Ultra/SukiSU-Ultra
|
|
cd kernel
|
|
|
|
echo "=== Building kernelsu.ko for KMI: ${{ inputs.kmi }} ==="
|
|
CONFIG_KSU=m CONFIG_KSU_KPROBES_HOOK=y CONFIG_KSU_MANUAL_SU=y make
|
|
|
|
echo "=== Build completed ==="
|
|
# Create output directory in GitHub workspace
|
|
mkdir -p /github/workspace/out
|
|
# Copy with KMI-specific naming
|
|
OUTPUT_NAME="${{ inputs.kmi }}_kernelsu.ko"
|
|
cp kernelsu.ko "/github/workspace/out/$OUTPUT_NAME"
|
|
|
|
echo "Copied to: /github/workspace/out/$OUTPUT_NAME"
|
|
ls -la "/github/workspace/out/$OUTPUT_NAME"
|
|
echo "Size: $(du -h "/github/workspace/out/$OUTPUT_NAME" | cut -f1)"
|
|
llvm-strip -d "/github/workspace/out/$OUTPUT_NAME"
|
|
echo "Size after stripping: $(du -h "/github/workspace/out/$OUTPUT_NAME" | cut -f1)"
|
|
|
|
- name: Upload kernelsu.ko artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ inputs.kmi }}-lkm
|
|
path: /github/workspace/out/${{ inputs.kmi }}_kernelsu.ko |