Browse Source

Add GitHub Action to apply KPM patch to kernel image

This action downloads the sukisu repo and applies a KPM patch to the kernel image.
jimsterino98 2 weeks ago
parent
commit
8227240b4a
1 changed files with 19 additions and 0 deletions
  1. 19 0
      .github/actions/kpm/action.yml

+ 19 - 0
.github/actions/kpm/action.yml

@@ -0,0 +1,19 @@
+name: apply kpm to kernel image
+description: apply kpm patch to kernel image from sukisu
+
+runs:
+ using: composite
+ steps:
+   - name: download sukisu repo and run script to apply kpm compatibility
+     shell: bash
+     run: |
+      git clone https://github.com/SukiSU-Ultra/SukiSU_patch.git
+      cp SukiSU_patch/kpm/patch_linux "$ANYKERNEL"
+      
+      cd "$ANYKERNEL"
+      chmod +x patch_linux
+      ./patch_linux
+      echo "KPM patch applied successfully!"
+      rm patch_linux
+      rm Image
+      mv oImage Image