Vivek Kumar Gupta, 16.06.2008:
> $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
SUBDIR is old syntax, you should use M now.
Documentation/kbuild/modules.txt describes how to create a makefile.
I used this one:
ifneq ($(KERNELRELEASE),)
obj-m := driver.o
else
# the currently running kernel
KDIR := /lib/modules/$(shell uname -r)/build
#KDIR := /usr/src/linux
modules modules_install clean help:
@make -C $(KDIR) M=$(shell pwd) --no-print-directory $@
endif
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ