Re: Help needed regarding Makefile os an external loadable module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux