Hello, Freebsd-stable. I'm trying to build very small FreeBSD installation (8.1-STABLE) and trying to use WITHOUT_MOUDLES="list" on buildkernel stage. But it builds all modules anyway. Simple check shows that I do something wrong: % cd /usr/src/sys/modules %make -V SUBDIR | grep -l 3dfx (standard input) %make WITHOUT_MODULES=3dfx -V SUBDIR | grep -l 3dfx (standard input) % What do I do wrong? -- // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
Lev Serebryakov-4 wrote:> > Hello, Freebsd-stable. > > I'm trying to build very small FreeBSD installation (8.1-STABLE) and > trying to use WITHOUT_MOUDLES="list" on buildkernel stage. But it > builds all modules anyway. > > Simple check shows that I do something wrong: > > % cd /usr/src/sys/modules > %make -V SUBDIR | grep -l 3dfx > (standard input) > %make WITHOUT_MODULES=3dfx -V SUBDIR | grep -l 3dfx > (standard input) > % > > What do I do wrong? > >If it should be small, why not use MODULES_OVERRIDE= "list" and build only the modules needed? regards, - Jakub Lach -- View this message in context: http://old.nabble.com/WITHOUT_MODULES%3A-does-it-work--tp29739626p29740089.html Sent from the freebsd-stable mailing list archive at Nabble.com.
Lev Serebryakov <lev@freebsd.org> wrote: > I'm trying to build very small FreeBSD installation (8.1-STABLE) and > trying to use WITHOUT_MOUDLES="list" on buildkernel stage. But it > builds all modules anyway. No, it doesn't. WITHOUT_MODULES (note spelling) works fine. > % cd /usr/src/sys/modules > %make -V SUBDIR | grep -l 3dfx > (standard input) > %make WITHOUT_MODULES=3dfx -V SUBDIR | grep -l 3dfx > (standard input) > % > > What do I do wrong? You use the -l option of grep, which hides the actual match. Note that there are actually _two_ modules containing the string "3dfx": 3dfx itself and 3dfx_linux. So even when you exclude the 3dfx module, the other one will still be included and trigger the grep output. The following will make it clearer: $ cd /usr/src/sys/modules $ make -V SUBDIR | tr ' ' '\n' | grep 3dfx 3dfx 3dfx_linux $ make WITHOUT_MODULES=3dfx -V SUBDIR | tr ' ' '\n' | grep 3dfx 3dfx_linux $ Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Being really good at C++ is like being really good at using rocks to sharpen sticks." -- Thant Tessman
On Friday 17 September 2010 17:21:54 Lev Serebryakov wrote:> I'm trying to build very small FreeBSD installation (8.1-STABLE) and > trying to use WITHOUT_MOUDLES="list" on buildkernel stage. But it > builds all modules anyway. > > Simple check shows that I do something wrong: > > % cd /usr/src/sys/modules > %make -V SUBDIR | grep -l 3dfx > (standard input) > %make WITHOUT_MODULES=3dfx -V SUBDIR | grep -l 3dfx > (standard input)The grep matches the 3dfx_linux module. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100917/a56e9b10/attachment.pgp