From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 10 23:11:15 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E768F16A400 for ; Sat, 10 Feb 2007 23:11:15 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 892DF13C48D for ; Sat, 10 Feb 2007 23:11:15 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so203784ugh for ; Sat, 10 Feb 2007 15:11:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tx4HD+JQe7HRZmHi4SBvJJuBdGaJfOPGAutpn7nAgiBvIflrOGjKwYktrCqmXxZ47wVrpSUBMtykKfBDFR3/VKKq+Htd96CGhiRK24Ni+1snBQpdT5OKFup/Gm5ozt1zXvOntMmedf/GJPhhc6dY8cqMXuSXLt6bLkM0vniK9kE= Received: by 10.66.232.11 with SMTP id e11mr13099817ugh.1171149074271; Sat, 10 Feb 2007 15:11:14 -0800 (PST) Received: by 10.67.23.8 with HTTP; Sat, 10 Feb 2007 15:11:14 -0800 (PST) Message-ID: Date: Sun, 11 Feb 2007 00:11:14 +0100 From: "Pietro Cerutti" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: build /* only */ the required kernel modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Feb 2007 23:11:16 -0000 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