我在编译linux的设备驱动程序时遇到了一些问题,我得到了以下错误
没有创建目标根目录//root/aarif/mydev.c', needed by
/aarif/mydev.o‘的规则。停
使用的Makefile是
obj-m=mydev.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
test:test.c
cc -o test test.c
谢谢
发布于 2012-05-15 18:25:58
你有mydev.c文件吗?
或者,尝试添加mydev-objs := test.o
,假设源文件是test.c
https://stackoverflow.com/questions/10598423
复制相似问题