|
@@ -186,18 +186,8 @@ jobs:
|
|
|
elif [ "${{ inputs.kernelsu_variant }}" == "MKSU" ]; then
|
|
elif [ "${{ inputs.kernelsu_variant }}" == "MKSU" ]; then
|
|
|
echo "Adding KernelSU MKSU..."
|
|
echo "Adding KernelSU MKSU..."
|
|
|
curl -LSs "https://raw.githubusercontent.com/5ec1cff/KernelSU/main/kernel/setup.sh" | bash $BRANCH
|
|
curl -LSs "https://raw.githubusercontent.com/5ec1cff/KernelSU/main/kernel/setup.sh" | bash $BRANCH
|
|
|
-
|
|
|
|
|
- # Revert commit of remove pts_unix98_lookup_pre
|
|
|
|
|
- cd KernelSU
|
|
|
|
|
- git revert -m 1 $(git log --grep="remove devpts hook" --pretty=format:"%h") -n
|
|
|
|
|
- KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" 12063)
|
|
|
|
|
- echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
|
|
|
|
|
- sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" kernel/Makefile
|
|
|
|
|
- else
|
|
|
|
|
- echo "Invalid KernelSU variant selected!"
|
|
|
|
|
- exit 1
|
|
|
|
|
fi
|
|
fi
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
- name: Apply SUSFS Patches for KernelSU Variants
|
|
- name: Apply SUSFS Patches for KernelSU Variants
|
|
|
run: |
|
|
run: |
|
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
@@ -207,6 +197,7 @@ jobs:
|
|
|
|
|
|
|
|
# Copy SUSFS patches
|
|
# Copy SUSFS patches
|
|
|
cp ../susfs4ksu/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch ./common/
|
|
cp ../susfs4ksu/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch ./common/
|
|
|
|
|
+ cp ../kernel_patches/fix.patch ./KernelSU/
|
|
|
cp ../susfs4ksu/kernel_patches/fs/* ./common/fs/
|
|
cp ../susfs4ksu/kernel_patches/fs/* ./common/fs/
|
|
|
cp ../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
|
|
cp ../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
|
|
|
|
|
|
|
@@ -237,7 +228,9 @@ jobs:
|
|
|
# Change to common directory and apply common SUSFS patch
|
|
# Change to common directory and apply common SUSFS patch
|
|
|
cd ../common
|
|
cd ../common
|
|
|
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
|
|
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
|
|
|
-
|
|
|
|
|
|
|
+ cd ../KernelSU
|
|
|
|
|
+ patch -p1 < fix.patch
|
|
|
|
|
+
|
|
|
- name: Apply Hide Stuff Patches
|
|
- name: Apply Hide Stuff Patches
|
|
|
run: |
|
|
run: |
|
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
echo "Changing to configuration directory: $CONFIG..."
|
|
@@ -276,6 +269,11 @@ jobs:
|
|
|
echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
|
echo "CONFIG_TMPFS_POSIX_ACL=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
echo "CONFIG_TMPFS_POSIX_ACL=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
|
|
|
|
|
|
|
|
+ # Add additional tmpfs config setting
|
|
|
|
|
+ echo "CONFIG_IP_NF_TARGET_TTL=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
|
|
|
+ echo "CONFIG_IP6_NF_TARGET_HL=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
|
|
|
+ echo "CONFIG_IP6_NF_MATCH_HL=y" >> ./common/arch/arm64/configs/gki_defconfig
|
|
|
|
|
+
|
|
|
# Remove check_defconfig
|
|
# Remove check_defconfig
|
|
|
sed -i 's/check_defconfig//' ./common/build.config.gki
|
|
sed -i 's/check_defconfig//' ./common/build.config.gki
|
|
|
|
|
|