3 | #include <module.h> /*编译时找不到这个头文件
cjzyypok@cjzyypok-VMware-Virtual-Platform:~/KernelPatch/kpms/getpid-app$ make TARGET_COMPILE=aarch64-none-elf- aarch64-none-elf-gcc -D__KERNEL__ -DMODULE -O2 -I/home/cjzyypok/KernelPatch /kernel/. -I/home/cjzyypok/KernelPatch /kernel/include -I/home/cjzyypok/KernelPatch /kernel/patch/include -I/home/cjzyypok/KernelPatch /kernel/linux/include -I/home/cjzyypok/KernelPatch /kernel/linux/arch/arm64/include -I/home/cjzyypok/KernelPatch /kernel/linux/tools/arch/arm64/include -c -o getpid-app.o getpid-app.c getpid-app.c:3:10: fatal error: module.h: No such file or directory 3 | #include <module.h> /* KernelPatch specific module header */ | ^~~~~~~~~~ compilation terminated. make: *** [Makefile:27:getpid-app.o] 错误 1 我在项目根目录搜索 明明有这个文头文件 /home/cjzyypok/KernelPatch/kernel/patch/include/ /home/cjzyypok/KernelPatch/kernel/linux/include/asm-generic 不知道为什么 Makefile 找不到,请问如何解决 ifndef KP_DIR KP_DIR = /home/cjzyypok/KernelPatch INCLUDE_DIRS := . include patch/include linux/include linux/arch/arm64/include linux/tools/arch/arm64/include