@@ -148,22 +148,22 @@ jobs:
148
148
149
149
if [ "${{ inputs.ksun_branch }}" == "stable" ] || [ "${{ inputs.ksun_branch }}" == "next" ]; then
150
150
echo "Applying next SUSFS patches..."
151
- cp ../../../kernel_patches/next/kernel-patch-susfs-v1.5.7-to-KernelSU-Next.patch ./ksun_susfs_latest.patch
151
+ cp ../../../kernel_patches/next/0001- kernel-patch-susfs-v1.5.7-to-KernelSU-Next-v1.0.7 .patch ./ksun_susfs_latest.patch
152
152
patch -p1 --forward < ksun_susfs_latest.patch || true
153
153
fi
154
154
155
155
# Determine base version based on branch
156
- if [ "${{ inputs.ksun_branch }}" == "stable" ]; then
157
- BASE_VERSION=10200
158
- elif [ "${{ inputs.ksun_branch }}" == "next" ]; then
159
- BASE_VERSION=10200
160
- elif [ "${{ inputs.ksun_branch }}" == " next-susfs" ]; then
161
- BASE_VERSION=10198
162
- elif [ "${{ inputs.ksun_branch }}" == "next-susfs-dev" ]; then
163
- BASE_VERSION=10198
164
- else
165
- BASE_VERSION=10200
166
- fi
156
+ case "${{ inputs.ksun_branch }}" in
157
+ next|stable)
158
+ BASE_VERSION=10200
159
+ ;;
160
+ next-susfs|next-susfs-dev)
161
+ BASE_VERSION=10198
162
+ ;;
163
+ *)
164
+ BASE_VERSION=10200
165
+ ;;
166
+ esac
167
167
168
168
cd ./kernel
169
169
KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" $BASE_VERSION)
@@ -193,7 +193,7 @@ jobs:
193
193
cp ../../../kernel_patches/69_hide_stuff.patch ./
194
194
patch -p1 -F 3 < 69_hide_stuff.patch
195
195
196
- - name : Add SUSFS Configuration Settings
196
+ - name : Add KernelSU-Next and SUSFS Configuration Settings
197
197
run : |
198
198
echo "Changing to configuration directory: $CONFIG..."
199
199
cd "$CONFIG/kernel_platform"
@@ -202,7 +202,7 @@ jobs:
202
202
203
203
# Add KSU configuration settings
204
204
echo "CONFIG_KSU=y" >> ./common/arch/arm64/configs/gki_defconfig
205
- echo "CONFIG_KSU_WITH_KPROBES =n" >> ./common/arch/arm64/configs/gki_defconfig
205
+ echo "CONFIG_KSU_KPROBES_HOOK =n" >> ./common/arch/arm64/configs/gki_defconfig
206
206
207
207
# Add SUSFS configuration settings
208
208
echo "CONFIG_KSU_SUSFS=y" >> ./common/arch/arm64/configs/gki_defconfig
@@ -226,6 +226,25 @@ jobs:
226
226
echo "CONFIG_TMPFS_XATTR=y" >> ./common/arch/arm64/configs/gki_defconfig
227
227
echo "CONFIG_TMPFS_POSIX_ACL=y" >> ./common/arch/arm64/configs/gki_defconfig
228
228
229
+ - name : Add BBR Support
230
+ run : |
231
+ echo "Changing to configuration directory: $CONFIG..."
232
+ cd "$CONFIG/kernel_platform"
233
+
234
+ echo "Adding configuration settings to gki_defconfig..."
235
+ echo "CONFIG_TCP_CONG_ADVANCED=y" >> ./common/arch/arm64/configs/gki_defconfig
236
+ echo "CONFIG_TCP_CONG_BBR=y" >> ./common/arch/arm64/configs/gki_defconfig
237
+
238
+ - name : Add TTL Target Support
239
+ run : |
240
+ echo "Changing to configuration directory: $CONFIG..."
241
+ cd "$CONFIG/kernel_platform"
242
+
243
+ echo "Adding configuration settings to gki_defconfig..."
244
+ echo "CONFIG_IP_NF_TARGET_TTL=y" >> ./common/arch/arm64/configs/gki_defconfig
245
+ echo "CONFIG_IP6_NF_TARGET_HL=y" >> ./common/arch/arm64/configs/gki_defconfig
246
+ echo "CONFIG_IP6_NF_MATCH_HL=y" >> ./common/arch/arm64/configs/gki_defconfig
247
+
229
248
- name : Run sed and perl Commands
230
249
run : |
231
250
echo "Changing to configuration directory: $CONFIG..."
@@ -252,10 +271,11 @@ jobs:
252
271
sed -i 's/export REPACK_IMG=true/export REPACK_IMG=false/g' ./oplus/build/oplus_setup.sh
253
272
254
273
# Run perl command to modify UTS_VERSION
255
- perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT Thu Mar 05 04:20:00 UTC 2025"}' ./common/scripts/mkcompile_h
256
- perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT Thu Mar 05 04:20:00 UTC 2025"}' ./msm-kernel/scripts/mkcompile_h
274
+ DATESTR=$(date -u)
275
+ perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT $DATESTR"}' ./common/scripts/mkcompile_h
276
+ perl -pi -e 's{UTS_VERSION="\$\(echo \$UTS_VERSION \$CONFIG_FLAGS \$TIMESTAMP \| cut -b -\$UTS_LEN\)"}{UTS_VERSION="#1 SMP PREEMPT $DATESTR"}' ./msm-kernel/scripts/mkcompile_h
257
277
258
- find . -type f -exec sed -i 's/\(make\s\+-C[^\n]*\)\s\+/\1 -j$(nproc) /g' {} +
278
+ # find . -type f -exec sed -i 's/\(make\s\+-C[^\n]*\)\s\+/\1 -j$(nproc) /g' {} +
259
279
260
280
- name : Build the Kernel
261
281
run : |
0 commit comments