How to build a kernel with specified modules?

lhmwzy lhmwzy at gmail.com
Thu Jul 17 16:59:19 PDT 2014


I want to build only the modules I wanted instead of all the modules in
/boot/kernel named *.ko.
Under FreeBSD,we can do this by /etc/make.conf,"MODULES_OVERRIDE=XXX XXXX
XXXX",but under DragonFlyBSD,this can't work.

When build a customer kernel,there are so many *.ko files in /boot/kernel.


2014-07-17 20:50 GMT+08:00 Joris Giovannangeli <joris at giovannangeli.fr>:

> Hi,
>
> you probably want to use
>
> "bus/usb/usb bus/usb/ehci" to build usb and the ehci controller.
>
> Please note that usb is the old usb stack, for the new one, you need :
>
> "bus/u4b/usb" and for instance, if you want to build the ukdb for usb
> keyboard, "bus/u4b/usb/input/ukbd"
>
> To answer more generally, you need to specify the path to the module
> directory. the module directory is usually an empty directory containing
> only a Makefile with a KMOD=modname declaration.
>
> Regards
> joris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20140718/ea209c80/attachment-0003.htm>


More information about the Users mailing list