MiCode / Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8.67k stars 3.19k forks source link

drivers/misc/Kconfig:540: can't open file "drivers/misc/hwid/Kconfig" #2381

Open PShocker opened 2 years ago

PShocker commented 2 years ago

按照Wiki里的教程编的,但是并没有这个文件,我看源码里也没有,啥情况?

PShocker commented 2 years ago

../drivers/thermal/thermal_core.c:27:10: fatal error: trace/hooks/thermal.h: No such file or directory

include <trace/hooks/thermal.h>

还有include/trace/hooks/thermal.h也没有

xiufeiwu commented 1 year ago

他们源码里把drivers/misc/hwid/给去掉了,我在github全站搜了下,找到一个项目https://github.com/Xiaomi-Diting-Development/android_kernel_xiaomi_diting 这个项目里复制一下drivers/misc/hwid/到你的项目里,然后就可以了

ccccoisini commented 1 year ago

按照Wiki里的教程编的,但是并没有这个文件,我看源码里也没有,啥情况?

你好,请问你后来解决了吗

kuailexs commented 1 year ago

../drivers/thermal/thermal_core.c:27:10: fatal error: trace/hooks/thermal.h: No such file or directory #include <trace/hooks/thermal.h> 还有include/trace/hooks/thermal.h也没有

在谷歌的原版内核里复制这个文件就可以了