Skip to content

Commit 9503120

Browse files
committed
Add hmbird dtbo patch
1 parent 4068455 commit 9503120

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ jobs:
198198
fi
199199
200200
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!"
201205
curl -Ls https://github.com/schqiushui/android_kernel_common_oneplus_sm8750/commit/5d2cc9706a35f5e4b5dbbd5d247487225a46e02c.patch | patch -p1 -F 3
202206
else
203207
echo "Not OPAce5Pro / OP13, skipping fengchi patch"
@@ -352,12 +356,8 @@ jobs:
352356
trap "kill $MONITOR_PID" EXIT
353357
354358
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"
361361
else
362362
LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
363363
fi
@@ -369,20 +369,12 @@ jobs:
369369
370370
echo "Copying Image"
371371
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
376372
377373
- name: Create ZIP Files for Different Formats
378374
run: |
379375
echo "Navigating to AnyKernel3 directory..."
380376
cd ./AnyKernel3
381377
382-
if [ "${{ inputs.model }}" == "OPAce5Pro" ] || [ "${{ inputs.model }}" == "OP13" ]; then
383-
sed -i '/flash_boot/a flash_dtbo' ./anykernel.sh
384-
fi
385-
386378
# Zip the files in the AnyKernel3 directory with a new naming convention
387379
ZIP_NAME="${{ inputs.model }}_${{ inputs.android_version }}_${{ inputs.kernel_version }}_Next_SUSFS_AnyKernel3.zip"
388380
echo "Creating zip file $ZIP_NAME..."

0 commit comments

Comments
 (0)