Date: Wed, 18 Nov 2009 16:24:05 -0200 From: Gonzalo Nemmi <gnemmi@gmail.com> To: freebsd-current@freebsd.org Subject: Re: WITHOUT_MODULES, does it actually work? Message-ID: <200911181624.05520.gnemmi@gmail.com> In-Reply-To: <0EB6E028-BA0A-48F1-AE7B-9F5E0A97B432@wanderview.com> References: <200911172021.16848.gnemmi@gmail.com> <19e9a5dc0911171944q5d15dc96t83ecd53befb07621@mail.gmail.com> <0EB6E028-BA0A-48F1-AE7B-9F5E0A97B432@wanderview.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ben@wanderview.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911181624.05520.gnemmi>