Building a module from outside the kernel tree (was: Re: NVIDIA dkms srpms)

Matthias Saou thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Mon Oct 9 10:00:22 UTC 2006


Richard Hughes wrote :

> On Thu, 2006-10-05 at 13:36 -0400, Bill Rugolsky Jr. wrote:
> > 
> > I've used DKMS for ecryptfs, unionfs, qvm86, and a few other drivers,
> > and it is no hassle at all.  Recent versions even have mkrpm and mkkmp
> > (Kernel Module Package) commands.
> 
> It's also been working great for me [for years] for ov518 webcam
> support. You have no idea how nice it is to compile some wacky -mm
> kernel, fire it up, and have all your hardware working without having to
> manually do this yourself.

I'd be interested in doing the same for the acx100 module, or
preferably the cleaned up and softmac based tiacx module from here :

http://www.kernel.org/pub/linux/kernel/people/linville/

But the files, especially the included Makefile, are meant for the
module to be built at the same time as the kernel. The usual "make
-C /lib/modules.../build -M `pwd`" doesn't work, and I'm really not
familiar enough with makefiles, nor with the special makefile kernel
magic to understand how to adapt this :

acx-common-y := wlan.o ioctl.o common.o
acx-usb-y := usb.o
acx-pci-y := pci.o

obj-$(CONFIG_ACX_PCI) += acx-common.o acx-pci.o
obj-$(CONFIG_ACX_USB) += acx-common.o acx-usb.o

If anyone knows what needs to be changed to get both modules built,
please let me know. Too bad this modules hasn't made it into 2.6.18 :-(

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 5.92 (FC6 Test3) - Linux kernel 2.6.18-1.2726.fc6
Load : 0.64 0.45 0.33




More information about the fedora-devel-list mailing list