Skip to content

Commit 8af1182

Browse files
committed
Add OnePlus 13 and OnePlus Ace 5 Pro Support
1 parent 8b22c61 commit 8af1182

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
kernel_version: "5.10"
3737
build-kernel-op12:
3838
uses: ./.github/workflows/build.yml
39+
needs: [build-kernel-op11, build-kernel-op11r]
3940
secrets: inherit
4041
with:
4142
model: "OP12"
@@ -46,6 +47,7 @@ jobs:
4647
kernel_version: "6.1"
4748
build-kernel-op13r:
4849
uses: ./.github/workflows/build.yml
50+
needs: [build-kernel-op11, build-kernel-op11r]
4951
secrets: inherit
5052
with:
5153
model: "OP13r"
@@ -56,6 +58,7 @@ jobs:
5658
kernel_version: "6.1"
5759
build-kernel-opnord4:
5860
uses: ./.github/workflows/build.yml
61+
needs: [build-kernel-op12, build-kernel-op13r]
5962
secrets: inherit
6063
with:
6164
model: "OP-NORD-4"
@@ -66,6 +69,7 @@ jobs:
6669
kernel_version: "6.1"
6770
build-kernel-opopen:
6871
uses: ./.github/workflows/build.yml
72+
needs: [build-kernel-op12, build-kernel-op13r]
6973
secrets: inherit
7074
with:
7175
model: "OP-OPEN"
@@ -76,6 +80,7 @@ jobs:
7680
kernel_version: "5.15"
7781
build-kernel-opace2:
7882
uses: ./.github/workflows/build.yml
83+
needs: [build-kernel-opnord4, build-kernel-opopen]
7984
secrets: inherit
8085
with:
8186
model: "OP-ACE-2"
@@ -86,6 +91,7 @@ jobs:
8691
kernel_version: "5.10"
8792
build-kernel-opace2pro:
8893
uses: ./.github/workflows/build.yml
94+
needs: [build-kernel-opnord4, build-kernel-opopen]
8995
secrets: inherit
9096
with:
9197
model: "OP-ACE-2-PRO"
@@ -96,6 +102,7 @@ jobs:
96102
kernel_version: "5.15"
97103
build-kernel-opace5:
98104
uses: ./.github/workflows/build.yml
105+
needs: [build-kernel-opace2, build-kernel-opace2pro]
99106
secrets: inherit
100107
with:
101108
model: "OP-ACE-5"
@@ -106,6 +113,7 @@ jobs:
106113
kernel_version: "6.1"
107114
build-kernel-op10t:
108115
uses: ./.github/workflows/build.yml
116+
needs: [build-kernel-opace2, build-kernel-opace2pro]
109117
secrets: inherit
110118
with:
111119
model: "OP10t"
@@ -116,6 +124,7 @@ jobs:
116124
kernel_version: "5.10"
117125
build-kernel-op10pro:
118126
uses: ./.github/workflows/build.yml
127+
needs: [build-kernel-opace5, build-kernel-op10t]
119128
secrets: inherit
120129
with:
121130
model: "OP10pro"
@@ -124,6 +133,28 @@ jobs:
124133
manifest: "oneplus_10_pro_v.xml"
125134
android_version: "android12"
126135
kernel_version: "5.10"
136+
build-kernel-op13:
137+
uses: ./.github/workflows/build.yml
138+
needs: [build-kernel-opace5, build-kernel-op10t]
139+
secrets: inherit
140+
with:
141+
model: "OP13"
142+
soc: "sun"
143+
branch: "oneplus/sm8750"
144+
manifest: "JiuGeFaCai_oneplus_13_v.xml"
145+
android_version: "android15"
146+
kernel_version: "6.6"
147+
build-kernel-opace5pro:
148+
uses: ./.github/workflows/build.yml
149+
needs: [build-kernel-op10pro, build-kernel-op13]
150+
secrets: inherit
151+
with:
152+
model: "OPAce5Pro"
153+
soc: "sun"
154+
branch: "oneplus/sm8750"
155+
manifest: "JiuGeFaCai_oneplus_ace5_pro_v.xml"
156+
android_version: "android15"
157+
kernel_version: "6.6"
127158

128159
trigger-release:
129160
runs-on: ubuntu-latest
@@ -139,6 +170,8 @@ jobs:
139170
- build-kernel-opace5
140171
- build-kernel-op10t
141172
- build-kernel-op10pro
173+
- build-kernel-op13
174+
- build-kernel-opace5pro
142175
if: ${{ inputs.make_release }}
143176
env:
144177
REPO_OWNER: TheWildJames

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
cp ../../susfs4ksu/kernel_patches/50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch ./common/
110110
cp ../../susfs4ksu/kernel_patches/fs/* ./common/fs/
111111
cp ../../susfs4ksu/kernel_patches/include/linux/* ./common/include/linux/
112-
112+
113113
cd ./KernelSU-Next
114114
115115
echo "Applying next SUSFS patches..."
@@ -118,6 +118,9 @@ jobs:
118118
119119
# Change to common directory and apply SUSFS patch
120120
cd ../common
121+
if [ "${{ inputs.soc }}" == "sun" ]; then
122+
sed -i '/#include <trace\/hooks\/blk.h>/a #include <trace/hooks/fs.h>' ./fs/namespace.c
123+
fi
121124
patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
122125
123126
- name: Apply KSU Hooks
@@ -210,18 +213,24 @@ jobs:
210213
#git config --global user.name "TheWildJames"
211214
#git add *
212215
#git commit -s -a -m "getting rid of -dirty"
216+
217+
BUILD_TYPE="gki"
218+
if [ "${{ inputs.soc }}" == "sun" ]; then
219+
BUILD_TYPE="perf"
220+
fi
213221
if [ -f ./kernel_platform/build_with_bazel.py ]; then
214222
./kernel_platform/build_with_bazel.py \
215223
-t ${{ inputs.soc }} \
216-
gki \
224+
$BUILD_TYPE \
217225
--jobs=$(nproc --all) \
218226
--verbose_failures \
219227
--config=stamp \
220228
--user_kmi_symbol_lists=//msm-kernel:android/abi_gki_aarch64_qcom \
221229
--ignore_missing_projects \
230+
--lto=thin \
222231
-o "$(pwd)/out"
223232
else
224-
./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} gki
233+
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} $BUILD_TYPE
225234
fi
226235
227236
- name: Copy Images

0 commit comments

Comments
 (0)