Re: HOWTO build a kernel module

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

 



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@xxxxxxxxxxxx> 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/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux