编译时出现Makefile错误 [英] Makefile error in compiling
本文介绍了编译时出现Makefile错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在内核中有一个带有一个.c文件,.h文件和makefile的文件夹,当我试图编译内核源代码时显示错误
hi all,
I have a folder in the kernel with one .c file, .h file and makefile, when i tried to compile the kernel source it shows the error
make[3]: *** No rule to make target `drivers/staging/t1framer/char_ds26521.o', needed by `drivers/staging/t1framer/built-in.o'. Stop.
make[2]: *** [drivers/staging/t1framer] Error 2
make[1]: *** [drivers/staging] Error 2
make: *** [drivers] Error 2
可以任何一个帮助为什么会出现这个错误,这里我也粘贴了我的Makefile
MAKEFILE
can any one help why this error is coming, here i have paste my Makefile also
MAKEFILE
obj-y := char_ds26521.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
MY C文件和头文件是
1.char_dev.c
2.char_ds26521.h
MY C files and Header Files are
1.char_dev.c
2.char_ds26521.h
推荐答案
(shell uname -r)/ build
PWD:=
(shell uname -r)/build PWD :=
(shell pwd)
默认值:
(shell pwd) default:
(MAKE)-C
这篇关于编译时出现Makefile错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文