@@ -198,6 +198,10 @@ jobs:
198
198
fi
199
199
200
200
if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
201
+ echo "Patching hmdird!"
202
+ echo 'obj-y += hmbird_patch.o' >> ./drivers/Makefile
203
+ curl -Ls https://raw.githubusercontent.com/Numbersf/Action-Build/refs/heads/SukiSU-Ultra/patches/hmbird_patch.patch | patch -p1 -F 3 --verbose
204
+ echo "Patching hmbird files!"
201
205
curl -Ls https://github.com/schqiushui/android_kernel_common_oneplus_sm8750/commit/5d2cc9706a35f5e4b5dbbd5d247487225a46e02c.patch | patch -p1 -F 3
202
206
else
203
207
echo "Not OPAce5Pro / OP13, skipping fengchi patch"
@@ -352,12 +356,8 @@ jobs:
352
356
trap "kill $MONITOR_PID" EXIT
353
357
354
358
if [ -f ./kernel_platform/build_with_bazel.py ]; then
355
- # ./kernel_platform/oplus/bazel/oplus_modules_variant.sh ${{ inputs.soc }} "$BUILD_TYPE" ""
356
- # ./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} $BUILD_TYPE "${BAZEL_ARGS[@]}" -o "$(pwd)/out"
357
- LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
358
- if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
359
- ./kernel_platform/oplus/build/oplus_rebuild_img.sh ${{ inputs.soc }} "$BUILD_TYPE"
360
- fi
359
+ ./kernel_platform/oplus/bazel/oplus_modules_variant.sh ${{ inputs.soc }} "$BUILD_TYPE" ""
360
+ ./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} $BUILD_TYPE "${BAZEL_ARGS[@]}" -o "$(pwd)/out"
361
361
else
362
362
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
363
363
fi
@@ -369,20 +369,12 @@ jobs:
369
369
370
370
echo "Copying Image"
371
371
cp ./out/dist/Image ../AnyKernel3/Image
372
- if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
373
- cp ./out/dist/dtbo.img ../AnyKernel3/dtbo.img
374
- zip -r "../out.zip" ./out/*
375
- fi
376
372
377
373
- name : Create ZIP Files for Different Formats
378
374
run : |
379
375
echo "Navigating to AnyKernel3 directory..."
380
376
cd ./AnyKernel3
381
377
382
- if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
383
- sed -i '/flash_boot/a flash_dtbo' ./anykernel.sh
384
- fi
385
-
386
378
# Zip the files in the AnyKernel3 directory with a new naming convention
387
379
ZIP_NAME="${{ inputs.model }}_${{ inputs.android_version }}_${{ inputs.kernel_version }}_Next_SUSFS_AnyKernel3.zip"
388
380
echo "Creating zip file $ZIP_NAME..."
0 commit comments