@@ -659,6 +659,8 @@ runs:
659659 KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" $BASE_VERSION)
660660 sed -i "s/DKSU_VERSION=11998/DKSU_VERSION=${KSU_VERSION}/" Makefile
661661
662+ echo "NEED_HOOKS=true" >> $GITHUB_ENV
663+
662664 cd ..
663665 KSU_COMMIT_SHA=$(git rev-parse HEAD)
664666 echo "KSU_COMMIT_SHA=$KSU_COMMIT_SHA" >> $GITHUB_ENV
@@ -685,7 +687,9 @@ runs:
685687 cd KernelSU/kernel
686688 BASE_VERSION=20000
687689 KSU_VERSION=$(expr $(/usr/bin/git rev-list --count HEAD) "+" $BASE_VERSION)
688- sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" Makefile
690+ sed -i "s/DKSU_VERSION=16/DKSU_VERSION=${KSU_VERSION}/" Kbuild
691+
692+ echo "NEED_HOOKS=false" >> $GITHUB_ENV
689693
690694 cd ..
691695 KSU_COMMIT_SHA=$(git rev-parse HEAD)
@@ -858,14 +862,14 @@ runs:
858862 echo "Hmbird not enabled, skipping fengchi patch"
859863 fi
860864
861- # patch -p1 --forward "../../../kernel_patches/common/optimized_mem_operations.patch"
862- # patch -p1 --forward "../../../kernel_patches/common/file_struct_8bytes_align.patch"
863- # patch -p1 --forward "../../../kernel_patches/common/reduce_cache_pressure.patch"
864- # if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
865- # patch -p1 --forward "../../../kernel_patches/common/clear_page_16bytes_align.patch"
866- # else
867- # cat "../../../kernel_patches/common/clear_page_16bytes_align.patch" | sed -e 's/SYM_FUNC_START_PI(clear_page)/SYM_FUNC_START_PI(__pi_clear_page)/' | patch -p1 -F3 --forward
868- # fi
865+ patch -p1 --forward "../../../kernel_patches/common/optimized_mem_operations.patch"
866+ patch -p1 --forward "../../../kernel_patches/common/file_struct_8bytes_align.patch"
867+ patch -p1 --forward "../../../kernel_patches/common/reduce_cache_pressure.patch"
868+ if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
869+ patch -p1 --forward "../../../kernel_patches/common/clear_page_16bytes_align.patch"
870+ else
871+ cat "../../../kernel_patches/common/clear_page_16bytes_align.patch" | sed -e 's/SYM_FUNC_START_PI(clear_page)/SYM_FUNC_START_PI(__pi_clear_page)/' | patch -p1 -F3 --forward
872+ fi
869873
870874 echo "✅ Other patches applied"
871875 echo "::endgroup::"
@@ -973,19 +977,6 @@ runs:
973977 EOF
974978 echo "::endgroup::"
975979
976- # - name: Disable RUST
977- # shell: bash
978- # run: |
979- # set -euo pipefail
980- # echo "::group::Disable RUST"
981- # cd "$CONFIG/kernel_platform"
982- # cat >> common/arch/arm64/configs/gki_defconfig <<EOF
983- # # CONFIG_RUST is not set
984- # # CONFIG_ANDROID_BINDER_IPC_RUST is not set
985- # CONFIG_ANDROID_BINDER_IPC=y
986- # EOF
987- # echo "::endgroup::"
988-
989980 - name : Add Build based configs
990981 shell : bash
991982 run : |
0 commit comments