HOWTO build a kernel module

BZ Benny bennybbz at
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

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> 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

More information about the users mailing list