|
|
@@ -1,18 +1,5 @@
|
|
|
name: apply susfs patches
|
|
|
description: apply susfs patches
|
|
|
-inputs:
|
|
|
- android_version:
|
|
|
- description: 'Android version (android14)'
|
|
|
- required: true
|
|
|
- kernel_version:
|
|
|
- description: 'Kernel version (6.1)'
|
|
|
- required: true
|
|
|
- branch:
|
|
|
- description: 'device kernel'
|
|
|
- required: true
|
|
|
- nomount:
|
|
|
- description: 'nomount'
|
|
|
- required: true
|
|
|
|
|
|
runs:
|
|
|
using: composite
|
|
|
@@ -20,7 +7,7 @@ runs:
|
|
|
- name: clone susfs
|
|
|
shell: bash
|
|
|
run: |
|
|
|
- SUSFS_BRANCH="gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}"
|
|
|
+ SUSFS_BRANCH="gki-$ANDROID_VERSION-$KERNEL_VERSION"
|
|
|
git clone https://gitlab.com/simonpunk/susfs4ksu.git -b "$SUSFS_BRANCH"
|
|
|
|
|
|
git config --global user.name "github-actions[bot]"
|
|
|
@@ -31,13 +18,13 @@ runs:
|
|
|
git log ..FETCH_HEAD --oneline -n 2 | awk '{print $1}' | tac | xargs git cherry-pick
|
|
|
|
|
|
#cd susfs4ksu
|
|
|
- #if [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android12-5.10" ]]; then
|
|
|
+ #if [[ "$ANDROID_VERSION-$KERNEL_VERSION" == "android12-5.10" ]]; then
|
|
|
#COMMIT=ce2c2b2dea28c89d33f61af898cc18a93bf65ae9
|
|
|
- #elif [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android13-5.15" ]]; then
|
|
|
+ #elif [[ "$ANDROID_VERSION-$KERNEL_VERSION" == "android13-5.15" ]]; then
|
|
|
# COMMIT=529919fbc9f8aee6ee70eb3a8890ef33af0a109c
|
|
|
- #elif [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android14-6.1" ]]; then
|
|
|
+ #elif [[ "$ANDROID_VERSION-$KERNEL_VERSION" == "android14-6.1" ]]; then
|
|
|
#COMMIT=d1327b62e0854603cfc26e2226e0a993ec9b0656
|
|
|
- #elif [[ "${{ inputs.android_version }}-${{ inputs.kernel_version }}" == "android15-6.6" ]]; then
|
|
|
+ #elif [[ "$ANDROID_VERSION-$KERNEL_VERSION" == "android15-6.6" ]]; then
|
|
|
#COMMIT=676d202ed2cc322a2f90bcb2b56bc4f6a864acb8
|
|
|
#fi
|
|
|
#git checkout "$COMMIT"
|
|
|
@@ -71,7 +58,7 @@ runs:
|
|
|
cd "$COMMON"
|
|
|
cp "$SUSFS4KSU/kernel_patches/fs/"* ./fs/
|
|
|
cp "$SUSFS4KSU/kernel_patches/include/linux/"* ./include/linux/
|
|
|
- cp "$SUSFS4KSU/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch" ./
|
|
|
+ cp "$SUSFS4KSU/kernel_patches/50_add_susfs_in_gki-$ANDROID_VERSION-$KERNEL_VERSION.patch" ./
|
|
|
|
|
|
- name: prepare namespace and open.c for susfs patch because scamsung
|
|
|
shell: bash
|
|
|
@@ -94,11 +81,11 @@ runs:
|
|
|
run: |
|
|
|
cd "$COMMON"
|
|
|
# Apply SUSFS core patch
|
|
|
- patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
|
|
|
- rm -rf 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch
|
|
|
+ patch -p1 < 50_add_susfs_in_gki-$ANDROID_VERSION-$KERNEL_VERSION.patch || true
|
|
|
+ rm -rf 50_add_susfs_in_gki-$ANDROID_VERSION-$KERNEL_VERSION.patch
|
|
|
|
|
|
shopt -s nullglob
|
|
|
- patches=("$KERNEL_PATCHES/samsung/${{ inputs.branch }}"/*.patch)
|
|
|
+ patches=("$KERNEL_PATCHES/samsung/$BRANCH"/*.patch)
|
|
|
|
|
|
if [ ${#patches[@]} -gt 0 ]; then
|
|
|
echo "Patches found, applying..."
|