|
|
Log in / Subscribe / Register

Driver porting: hello world

Driver porting: hello world

Posted Jul 17, 2004 1:14 UTC (Sat) by bhaskie (guest, #23099)
In reply to: Driver porting: hello world by hemal
Parent article: Driver porting: hello world

Towards the end of the Makefile:
----------
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
endif
----------
add a tab before the $(MAKE)

copy-pasting code results in such errors. read the man pages.
check http://lwn.net/Articles/21823/ , the Makefile has a tab space there.


to post comments

Driver porting: hello world

Posted May 24, 2006 9:15 UTC (Wed) by Jackie (guest, #37933) [Link] (2 responses)

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.

Driver porting: hello world

Posted May 24, 2006 9:18 UTC (Wed) by Jackie (guest, #37933) [Link]

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.

Driver porting: hello world

Posted Jul 17, 2006 13:12 UTC (Mon) by jameswin (guest, #39125) [Link]

Hello!I got the same problem like you.
Could you guide me how to solve the problem.
Thank you in advance.
jameswin


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