Bläddra i källkod

feat(susfs): apply 10_enable patch for kernelsu flavor only

TheWildJames 4 dagar sedan
förälder
incheckning
c83cd668ce
1 ändrade filer med 14 tillägg och 1 borttagningar
  1. 14 1
      .github/actions/susfs-patches/action.yml

+ 14 - 1
.github/actions/susfs-patches/action.yml

@@ -45,7 +45,20 @@ runs:
    - name: Apply to KSUN
      shell: bash
      run: |
-       echo "SUSFS prepared at $SUSFS4KSU"
+       # Tiann KernelSU does not ship SUSFS: apply the enable patch to the
+       # root checkout. Next and ReSukiSU already include SUSFS, skip them.
+       if [ "${{ inputs.flavor }}" = "kernelsu" ]; then
+         PATCH="$SUSFS4KSU/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch"
+         if [ ! -f "$PATCH" ]; then
+           echo "Missing 10_enable_susfs_for_ksu.patch at $PATCH" >&2
+           exit 1
+         fi
+         echo "Applying SUSFS enable patch to KernelSU checkout at $ROOT_DIR"
+         git -C "$ROOT_DIR" apply --check "$PATCH"
+         git -C "$ROOT_DIR" apply "$PATCH"
+       else
+         echo "SUSFS prepared at $SUSFS4KSU (flavor ${{ inputs.flavor }} ships its own SUSFS)"
+       fi
        
    - name: Copy required files
      shell: bash