|
|
@@ -174,6 +174,16 @@ jobs:
|
|
|
fi
|
|
|
|
|
|
- name: Add KernelSU
|
|
|
+ if: ${{ inputs.kernelsu_variant == 'Official' }}
|
|
|
+ run: |
|
|
|
+ echo "Changing to configuration directory: $CONFIG..."
|
|
|
+ cd "$CONFIG"
|
|
|
+
|
|
|
+ echo "Adding KernelSU..."
|
|
|
+ curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash $BRANCH
|
|
|
+
|
|
|
+ - name: Add KernelSU
|
|
|
+ if: ${{ inputs.kernelsu_variant == 'Next' }}
|
|
|
run: |
|
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
|
cd "$CONFIG"
|
|
|
@@ -181,7 +191,8 @@ jobs:
|
|
|
echo "Adding KernelSU..."
|
|
|
curl -LSs "https://raw.githubusercontent.com/rifsxd/KernelSU-Next/next/kernel/setup.sh" | bash $BRANCH
|
|
|
|
|
|
- - name: Apply SUSFS Patches
|
|
|
+ - name: Apply SUSFS Patches KernelSU
|
|
|
+ if: ${{ inputs.kernelsu_variant == 'Official' }}
|
|
|
run: |
|
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
|
cd "$CONFIG"
|
|
|
@@ -195,7 +206,6 @@ jobs:
|
|
|
cp ../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
|
|
|
|
|
|
cd ./KernelSU-Next
|
|
|
-
|
|
|
echo "Applying next SUSFS patches..."
|
|
|
cp ../../kernel_patches/KernelSU-Next-Implement-SUSFS-v1.5.5-Universal.patch ./
|
|
|
patch -p1 --forward < KernelSU-Next-Implement-SUSFS-v1.5.5-Universal.patch || true
|
|
|
@@ -204,6 +214,28 @@ jobs:
|
|
|
cd ../common
|
|
|
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
|
|
|
|
|
|
+ - name: Apply SUSFS Patches KernelSU-Next
|
|
|
+ if: ${{ inputs.kernelsu_variant == 'Next' }}
|
|
|
+ run: |
|
|
|
+ echo "Changing to configuration directory: $CONFIG..."
|
|
|
+ cd "$CONFIG"
|
|
|
+
|
|
|
+ echo "Applying SUSFS patches..."
|
|
|
+
|
|
|
+ # Copy SUSFS patches
|
|
|
+ cp ../susfs4ksu/kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch ./KernelSU/
|
|
|
+ cp ../susfs4ksu/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch ./common/
|
|
|
+ cp ../susfs4ksu/kernel_patches/fs/* ./common/fs/
|
|
|
+ cp ../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
|
|
|
+
|
|
|
+ cd ./KernelSU
|
|
|
+ echo "Applying next SUSFS patches..."
|
|
|
+ patch -p1 --forward < 10_enable_susfs_for_ksu.patch
|
|
|
+
|
|
|
+ # Change to common directory and apply SUSFS patch
|
|
|
+ cd ../common
|
|
|
+ patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
|
|
|
+
|
|
|
- name: Apply Hide Stuff Patches
|
|
|
run: |
|
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
|
@@ -254,6 +286,7 @@ jobs:
|
|
|
|
|
|
echo "Building the kernel..."
|
|
|
if [ -f "build/build.sh" ]; then
|
|
|
+ sed -i 's/-dirty//' ./common/scripts/setlocalversion
|
|
|
LTO=${{ inputs.lto_type }} BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
|
|
|
else
|
|
|
rm -rf ./common/android/abi_gki_protected_exports_*
|