Pani Posted June 3, 2005 Report Share Posted June 3, 2005 I have written a char device driver and with the makefile; ifneq ($(KERNELRELEASE),) obj-m := lunix2k5.o else KERNELDIR ?=/lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif I could see it working in both Suse 9.2 and FC3. However when I use make in Mandrake 10.1 I get the following; make -C /lib/modules/2.6.8.1-10mdk M=/home/pani/lunix modules make[1]: Entering directory `/lib/modules/2.6.8.1-10mdk' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/2.6.8.1-10mdk' make: *** [default] Error 2 What should I change? Quote Link to comment Share on other sites More sharing options...
Pani Posted June 8, 2005 Author Report Share Posted June 8, 2005 The problem was that I hadn't installed kernel-source. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.