From owner-freebsd-stable@FreeBSD.ORG Fri Sep 17 17:03:46 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3B02106566C; Fri, 17 Sep 2010 17:03:46 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4708F8FC12; Fri, 17 Sep 2010 17:03:46 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o8HH3TtZ016698; Fri, 17 Sep 2010 19:03:45 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o8HH3TMD016697; Fri, 17 Sep 2010 19:03:29 +0200 (CEST) (envelope-from olli) Date: Fri, 17 Sep 2010 19:03:29 +0200 (CEST) Message-Id: <201009171703.o8HH3TMD016697@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, lev@FreeBSD.ORG In-Reply-To: <6310327366.20100917192154@serebryakov.spb.ru> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Fri, 17 Sep 2010 19:03:45 +0200 (CEST) Cc: Subject: Re: WITHOUT_MODULES: does it work? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, lev@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 17:03:47 -0000 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. 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