tiann / KernelSU

A Kernel based root solution for Android
https://kernelsu.org
GNU General Public License v3.0
10.64k stars 1.75k forks source link

在使用小米内核源码给米8屏幕指纹版集成KSU编译时碰到的问题 #1172

Closed OldGodShen closed 1 year ago

OldGodShen commented 1 year ago

Please check before submitting an issue

Describe the bug

kernel.log 其中报错为 ../drivers/kernelsu/apk_sign.c: In function 'check_block': ../drivers/kernelsu/apk_sign.c:101:14: warning: passing argument 1 of 'IS_ERR' makes pointer from integer without a cast error, forbidden warning: apk_sign.c:101 make[3]: [../scripts/Makefile.build:339: drivers/kernelsu/apk_sign.o] Error 1 make[3]: Waiting for unfinished jobs.... CC drivers/irqchip/irq-gic-v3-its.o make[2]: [../scripts/Makefile.build:653: drivers/kernelsu] Error 2 make[2]: Waiting for unfinished jobs....

使用编译的脚本为 export ARCH=arm64 export SUBARCH=arm64 export CROSS_COMPILE=/home/ogs/Kernel/toolchains/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9/bin/aarch64-linux-android-

make O=out equuleus_user_defconfig make -j$(nproc) O=out 2>&1 | tee kernel.log

toolchain是谷歌的gcc

源码仓库为 https://github.com/OldGodShen/Xiaomi_Kernel_OpenSource 分支为dipper-q-oss

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Logs

No response

Device info

Additional context

No response

Coconutat commented 1 year ago

如果有兴趣,请参考这个:https://github.com/Coconutat/android_kernel_xiaomi_sdm845_exp

OldGodShen commented 1 year ago

小米探索版的屏幕指纹工作吗

Coconutat commented 1 year ago

小米探索版的屏幕指纹工作吗

依然会掉指纹。

OldGodShen commented 1 year ago

掉指纹是ksu的问题还是小米源码的问题 还有就是我在编译时gcc不会出错,但是使用Proton-Clang就会出错编译失败

Coconutat commented 1 year ago

掉指纹是ksu的问题还是小米源码的问题 还有就是我在编译时gcc不会出错,但是使用Proton-Clang就会出错编译失败

官方源码就是只能用GCC,Proton-Clang是我自己修改源码后支持的。然后我顺便Upstream了源码。OLD_KernelSU分支那个是原始的只增加了KSU的源码。

OldGodShen commented 1 year ago

懂了 那掉指纹是官方源码的问题吗