Re: building a driver in /lib/modules/2.6.9-1.667/build/ - how? need src.rpm?

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

 



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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]