Skip to content

Commit 550902b

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

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,26 @@ jobs:
124124
manifest: "oneplus_10_pro_v.xml"
125125
android_version: "android12"
126126
kernel_version: "5.10"
127+
build-kernel-op13:
128+
uses: ./.github/workflows/build.yml
129+
secrets: inherit
130+
with:
131+
model: "OP13"
132+
soc: "sun"
133+
branch: "oneplus/sm8750"
134+
manifest: "JiuGeFaCai_oneplus_13_v.xml"
135+
android_version: "android15"
136+
kernel_version: "6.6"
137+
build-kernel-opace5pro:
138+
uses: ./.github/workflows/build.yml
139+
secrets: inherit
140+
with:
141+
model: "OPAce5Pro"
142+
soc: "sun"
143+
branch: "oneplus/sm8750"
144+
manifest: "JiuGeFaCai_oneplus_ace5_pro_v.xml"
145+
android_version: "android15"
146+
kernel_version: "6.6"
127147

128148
trigger-release:
129149
runs-on: ubuntu-latest
@@ -139,6 +159,8 @@ jobs:
139159
- build-kernel-opace5
140160
- build-kernel-op10t
141161
- build-kernel-op10pro
162+
- build-kernel-op13
163+
- build-kernel-opace5pro
142164
if: ${{ inputs.make_release }}
143165
env:
144166
REPO_OWNER: TheWildJames

.github/workflows/build.yml

Lines changed: 9 additions & 13 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,19 +213,12 @@ jobs:
210213
#git config --global user.name "TheWildJames"
211214
#git add *
212215
#git commit -s -a -m "getting rid of -dirty"
213-
if [ -f ./kernel_platform/build_with_bazel.py ]; then
214-
./kernel_platform/build_with_bazel.py \
215-
-t ${{ inputs.soc }} \
216-
gki \
217-
--jobs=$(nproc --all) \
218-
--verbose_failures \
219-
--config=stamp \
220-
--user_kmi_symbol_lists=//msm-kernel:android/abi_gki_aarch64_qcom \
221-
--ignore_missing_projects \
222-
-o "$(pwd)/out"
223-
else
224-
./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} gki
216+
217+
BUILD_TYPE="gki"
218+
if [ "${{ inputs.soc }}" == "sun" ]; then
219+
BUILD_TYPE="perf"
225220
fi
221+
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} $BUILD_TYPE
226222
227223
- name: Copy Images
228224
run: |

0 commit comments

Comments
 (0)