Skip to content

Commit 60250a1

Browse files
committed
Cleanup Redundant code
1 parent 613a77f commit 60250a1

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

.github/workflows/build-kernel-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ on:
1919
options:
2020
- stable
2121
- next
22-
- next-susfs
23-
- next-susfs-dev
2422
default: stable
2523

2624
jobs:

.github/workflows/build.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ jobs:
129129
else
130130
curl -LSs "https://raw.githubusercontent.com/KernelSU-Next/KernelSU-Next/next/kernel/setup.sh" | bash -s ${{ inputs.ksun_branch }}
131131
fi
132-
133-
git submodule update --init --recursive
134132
135133
- name: Apply SUSFS Patches
136134
run: |
@@ -146,25 +144,11 @@ jobs:
146144
147145
cd ./KernelSU-Next
148146
149-
if [ "${{ inputs.ksun_branch }}" == "stable" ] || [ "${{ inputs.ksun_branch }}" == "next" ]; then
150-
echo "Applying next SUSFS patches..."
151-
cp ../../../kernel_patches/next/ksun_susfs_v1.5.7_patch_12647+.patch ./ksun_susfs_latest.patch
152-
patch -p1 --forward < ksun_susfs_latest.patch || true
153-
fi
154-
155-
# Determine base version based on branch
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
147+
echo "Applying next SUSFS patches..."
148+
cp ../../../kernel_patches/next/ksun_susfs_v1.5.7_patch_12647+.patch ./ksun_susfs_latest.patch
149+
patch -p1 --forward < ksun_susfs_latest.patch || true
167150
151+
BASE_VERSION=10200
168152
cd ./kernel
169153
KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" $BASE_VERSION)
170154
echo "KSUVER=$KSU_VERSION" >> $GITHUB_ENV
@@ -308,8 +292,6 @@ jobs:
308292
DATESTR=$(date -u)
309293
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
310294
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
311-
312-
# find . -type f -exec sed -i 's/\(make\s\+-C[^\n]*\)\s\+/\1 -j$(nproc) /g' {} +
313295
314296
- name: Build the Kernel
315297
run: |
@@ -359,12 +341,6 @@ jobs:
359341
360342
echo "Copying Image"
361343
cp ./out/dist/Image ../AnyKernel3/Image
362-
if [ "${{ inputs.model }}" == "OPAce5Pro" ]; then
363-
cp ./out/dist/dtbo.img ../AnyKernel3/
364-
cp ./out/dist/system_dlkm.erofs.img ../AnyKernel3/system_dlkm.img
365-
# cp ./out/dist/vendor_dlkm.img ../AnyKernel3/
366-
# cp ./out/dist/vendor_boot.img ../AnyKernel3/
367-
fi
368344
369345
- name: Create ZIP Files for Different Formats
370346
run: |

0 commit comments

Comments
 (0)