Преглед изворни кода

ci(workflows): add ptrace patch step for older kernels

Add patch step to apply ptrace fix for kernels older than 5.16 in build workflow. This ensures compatibility with older kernel versions.
TheWildJames пре 1 година
родитељ
комит
9ede079035
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      .github/workflows/build.yml

+ 7 - 0
.github/workflows/build.yml

@@ -125,6 +125,13 @@ jobs:
               echo "Line already present. Skipping insert."
               echo "Line already present. Skipping insert."
           fi
           fi
 
 
+      - name: Apply ptrace patch for older kernels
+        if: fromJSON(inputs.kernel_version) < 5.16
+        run: |
+          cd "$CONFIG/common"
+          echo "Patching ptrace!"
+          patch -p1 -F 3 < "../../../kernel_patches/gki_ptrace.patch"
+
       - name: Determine the branch for KernelSU
       - name: Determine the branch for KernelSU
         run: |
         run: |
           case "${{ inputs.kernelsu_branch }}" in
           case "${{ inputs.kernelsu_branch }}" in