building a driver in /lib/modules/2.6.9-1.667/build/ - how? need src.rpm?
Arjan van de Ven
arjanv at redhat.com
Wed Nov 17 08:01:32 UTC 2004
On Tue, 2004-11-16 at 18:13 -0800, Carlos Puchol wrote:
> hi, i have a driver, called my-driver.c here, that builds cleanly
> on a clean, official 2.6.9 tree:
>
> ...
> MODPOST
> CC drivers/char/my-driver.mod.o
> LD [M] drivers/char/my-driver.ko
> ..
>
> i made modifications to the Kconfig and Makefile, .config, etc. so that it
> all goes well.
yikes that sounds not quite right
what you want is a Makefile that looks like
obj-m += my-driver.o
and then do
make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD modules
no need to edit anything in /lib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20041117/36c2cc3b/attachment.sig>
More information about the fedora-test-list
mailing list