Skip to content

Commit 645b7c2

Browse files
committed
Add Support for OnePlus 13s
1 parent f57619f commit 645b7c2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ jobs:
144144
manifest: oneplus_pad2_v.xml
145145
android_version: android14
146146
kernel_version: "6.1"
147+
- model: OP13S
148+
soc: sun
149+
branch: oneplus/sm8750
150+
manifest: oneplus_13s.xml
151+
android_version: android15
152+
kernel_version: "6.6"
147153
uses: ./.github/workflows/build.yml
148154
secrets: inherit
149155
with:

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,12 @@ jobs:
172172
173173
# Change to common directory and apply SUSFS patch
174174
cd ../../common
175-
if [ "${{ inputs.soc }}" == "sun" ]; then
176-
sed -i '/#include <trace\/hooks\/blk.h>/a #include <trace/hooks/fs.h>' ./fs/namespace.c
175+
if [ "${{ inputs.soc }}" = "sun" ]; then
176+
if ! grep -qxF '#include <trace/hooks/fs.h>' ./fs/namespace.c; then
177+
sed -i '/#include <trace\/hooks\/blk.h>/a #include <trace\/hooks\/fs.h>' ./fs/namespace.c
178+
else
179+
echo "Line already present. Skipping insert."
180+
fi
177181
fi
178182
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
179183

0 commit comments

Comments
 (0)