Building a module from outside the kernel tree (was: Re: NVIDIA dkms srpms)
Ralf Ertzinger
fedora at camperquake.de
Mon Oct 9 10:10:19 UTC 2006
Hi.
On Mon, 9 Oct 2006 12:00:22 +0200, Matthias Saou wrote:
> 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
Try the following (no guarantees as I do not have the source here):
make -C /lib/modules.../build M=$(pwd) CONFIG_ACX_PCI=m CONFIG_ACX_USB=m
More information about the fedora-devel-list
mailing list