- 积分
- 75
贡献338
飞刀98 FD
注册时间2017-4-5
在线时间12 小时

 
扫一扫,手机访问本帖 
|
本帖最后由 lhl161123 于 2024-7-25 15:28 编辑
请教大佬,我在使用3568内核进行交叉编译led驱动模块时报错,如下/include/linux/compiler_types.h:88:10: fatal error: asm/compiler.h: No such file or directory
led驱动是飞凌的leds-gpio.c,Makefile文件如下
obj-m += leds-gpio.o
KDIR:=/home/forlinx/3568/OK3568_Linux/OK3568_Linux_fs/kernel
PWD?=$(shell pwd)
all:
make -C $(KDIR) M=$(PWD) modules
clean:
rm -f *.ko *.o *.mod.o *.mod.c *.symvers *.order
后来我在kernel目录下的Makefile文件加入交叉编译器,编译还报错,提示没有aarch64-linux-gnu-gcc:No such file or directory
请问是什么问题,怎么解决?
|
-
修改Makefile
|