Parcourir la 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 il y a 1 an
Parent
commit
9ede079035
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  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