Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2007 00:11:14 +0100
From:      "Pietro Cerutti" <pietro.cerutti@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   build /* only */ the required kernel modules
Message-ID:  <e572718c0702101511p6e152abegf07df9d80edcc1b1@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi Hackers,
I'm stripping down my kernel, and I use the MODULES_OVERRIDE option in make.conf

Here's the question:
I need support for if_fwe and ng_bluetooth, but I can't find a way to
build /*ONLY*/ the required modules, instead of building
/*EVERYTHING*/ under firewire/ and under netgraph/

Adding "netgraph/bluetooth" and "firewire/fwe" in the MODULES_OVERRIDE
list won't build the parent netgraph and firewire modules, but adding
"netgraph" and "firewire" will build lots of unneeded and unwanted
modules.

Example:
>  find /boot/kernel/ -name "ng_*" | wc -l
58

when, /sys/modules/netgraph/bluetooth/Makefile just lists 8 modules as
dependencies.

How could I get rid of the ~50 unneeded modules?

Same thing for firewire, where unneeded if_fwip, sbp and sbp_targ are
also built, along with firewire and if_fwe.

Thanx in advance,


-- 
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
 against HTML e-mail and
 proprietary attachments
   www.asciiribbon.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e572718c0702101511p6e152abegf07df9d80edcc1b1>