Driver porting: hello world
Driver porting: hello world
Posted May 24, 2006 9:15 UTC (Wed) by Jackie (guest, #37933)In reply to: Driver porting: hello world by bhaskie
Parent article: Driver porting: hello world
I am a newer and my makefile is :
ifneq ($(KERNELRELEASE),)
obj-m:=hello.o
else
KDIR:=/lib/modules/$(shell uname -r)
PWD:=$(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) hello
endif
When I type 'make' on the command line, it says:
make[1]: Entering directory `/lib/modules/2.6.12-10-386'
make[1]: *** No rule to make target `mytest'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.12-10-386'
make: *** [default] Error 2
"2.6.12-10-386" is my kernel version.I don't know why and any answer is appreciated.
