|
|
Log in / Subscribe / Register

Driver porting: hello world

Driver porting: hello world

Posted May 24, 2006 9:18 UTC (Wed) by Jackie (guest, #37933)
In reply to: Driver porting: hello world by Jackie
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 `hello'. 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.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds