From owner-freebsd-current@FreeBSD.ORG Wed Nov 18 18:24:11 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE6331065670 for ; Wed, 18 Nov 2009 18:24:11 +0000 (UTC) (envelope-from gnemmi@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id 6E06A8FC15 for ; Wed, 18 Nov 2009 18:24:11 +0000 (UTC) Received: by yxe1 with SMTP id 1so1307211yxe.3 for ; Wed, 18 Nov 2009 10:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=h45v3v50Q54VYQCIlffeAyHLWk7qd2TkdZsfHouXUL4=; b=ErHPG//PC73jeH/Dn5uhOhR+G2GpHP06rE+EYrssrf1Ozw82lSl+tefYgKvnfcJtIZ HmX9dXzh5KjhlVpDcj8EWW+L1r72xXefBNIn359dOFcS8h1Nqixub5bafxCQ6NUZdE6t C9QRLYAbl2EtoShd+ie4VvgqU3xgPaVL3B6Gc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=Ty5e+XeXwn7FsIWh01tcTlQppqgrJNQ0EqBKcEYb93Upx6nEVQP/qV5m2tk0DoG2eP KC1VUCUSDLfy94bF7+ueFPEMMITNbxITOocq+4hwMOfL1gC1DFg3XqMlu51UvZFN7A7k cpwowb1+su61iUsR8eFbJ4vGFx0Pz0zbY9vBs= Received: by 10.101.72.10 with SMTP id z10mr1677580ank.122.1258568650342; Wed, 18 Nov 2009 10:24:10 -0800 (PST) Received: from ?192.168.1.101? ([190.177.192.49]) by mx.google.com with ESMTPS id 9sm94907ywe.41.2009.11.18.10.24.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 10:24:08 -0800 (PST) From: Gonzalo Nemmi To: freebsd-current@freebsd.org Date: Wed, 18 Nov 2009 16:24:05 -0200 User-Agent: KMail/1.9.10 References: <200911172021.16848.gnemmi@gmail.com> <19e9a5dc0911171944q5d15dc96t83ecd53befb07621@mail.gmail.com> <0EB6E028-BA0A-48F1-AE7B-9F5E0A97B432@wanderview.com> In-Reply-To: <0EB6E028-BA0A-48F1-AE7B-9F5E0A97B432@wanderview.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200911181624.05520.gnemmi@gmail.com> Subject: Re: WITHOUT_MODULES, does it actually work? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 18:24:11 -0000 On Wednesday 18 November 2009 10:28:40 am Ben Kelly wrote: > On Nov 17, 2009, at 10:44 PM, Gonzalo Nemmi wrote: > > On Tue, Nov 17, 2009 at 10:59 PM, Ben Kelly wrote: > >> On Nov 17, 2009, at 8:06 PM, Doug Barton wrote: > >>> Ben Kelly wrote: > >>>> It seems there are some left over bits then. I have this in > >> > >> /usr/src/sys/modules/Makefile: > >>>> .for reject in ${WITHOUT_MODULES} > >>>> SUBDIR:= ${SUBDIR:N${reject}} > >>>> .endfor > >>> > >>> Well it seems my search was not exhaustive. > >>> > >>> My recommendation then would be to file a src PR so that someone > >>> can look into it. :) > >> > >> I've opened a doc PR for the bad example in the handbook and a > >> conf PR for the patch to make WITHOUT_MODULES work from the kernel > >> config file using makeoptions. I haven't gotten PR numbers back > >> from the system yet. > >> > >> - Ben_______________________________________________ > > > > So, basically .. not only man make.conf and the handbook examples > > are wrong .. WITHOUT_MODULES doesn't actually work :s > > > > Thanks a lot for your research, testing, PR and patches Ben ! > > Please, should you be able to, I would like to know the PR number > > so I can follow it. > > Hope your patch makes it in and WITHOUT_MODULES works as expected > > :) > > No problem. > > Just to clarify, though. The content of man make.conf looks correct > to me and the variable did work if you put it in /etc/make.conf. The > only issues I saw were the example in the handbook and the failure of > makeoptions in the kernel config file. > > I do think you could get a number of the modules in your original > list excluded if you specified them differently: > > WITHOUT_MODULES=firewire bwi bce bfe iwi iwn zfs > > Basically remove the dev/ prefix you have on some of them. > > Hope that helps. > > - Ben Thank _you_ Ben. By following your good advice, I modified WITHOUT_MODULES and got it to look like this: WITHOUT_MODULES= firewire bwi bce bfe iwi iwn zfs 3dfx 3dfx_linux amdtemp en em ep esp et ex fe fdc ae age ale de ed ida ie if_faith igb nge reiserfs rl s3 ti tl xfs by doing so, I got rid of 70 modules and reduced kernel compile time considerably. I will be playing around with it (most likely trying to get just sound and snd_hda instead of every snd_ module .. and just if_bge instead of all of the if_someethcard modules) and see what I get. Should I get something interesting out of it, I will comment it in here. Once again, thanks a lot for your interest, investigations, work, kind answers, and good advice on this issue. I really appreciate it, and it _did_ help :) My Best Regards Gonzalo Nemmi