Building kernel modules
jbk
jbk at mail2.gis.net
Sun Jan 7 08:38:34 EST 2007
I am trying to make the ide-tape.ko module using the
instructions provided in the Fc6 release notes.
Thus:
or example, to build the foo.ko module, create the following
Makefile in the directory containing the foo.c file:
obj-m := foo.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
####################################################
substituting ide-tap.o for foo.o I issue "make ide-tape.ko"
Oops,
I figured it out and did it. I have to issue "make" with no
target.
Now the question is do I just copy the .ko file to
/lib/modules/"kernelversion"/kernel/drivers/ide/ or do I
have to issue the "make modules install" command to register
the new module? This would seem pretty convoluted since it
requires being in the build root dir of the kernel-devel. I
guess I'll find out if it works.
till next
Jim K-R
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list