Browse Source

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 year ago
parent
commit
9ede079035
1 changed files with 7 additions and 0 deletions
  1. 7 0
      .github/workflows/build.yml

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

@@ -125,6 +125,13 @@ jobs:
               echo "Line already present. Skipping insert."
           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
         run: |
           case "${{ inputs.kernelsu_branch }}" in