HOWTO build a kernel module
BZ Benny
bennybbz at yahoo.fr
Tue Feb 22 10:25:32 UTC 2005
Hi Paul,
tkank you, you are very helpful.
I did like you describe here for building hci_usb.ko
in
/lib/modules/2.6.10-1.766_FC3/kernel/drivers/bluetooth
But i noticed that the one used before has a size of
19.4KB and the one I build by myself has 133.9KB size.
why is it so biger than the original one?
--- Paul Howarth <paul at city-fan.org> a écrit :
-------------------------------------------------------------------------
> For example, to build the foo.ko module, create the
> following file
> (named 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) SUBDIRS=$(PWD) modules
>
> Issue the make command to build the foo.ko module.
------------------------------------------------------------------------
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
More information about the users
mailing list