Re: WITHOUT_MODULES, does it actually work?

From: Gonzalo Nemmi <gnemmi_at_gmail.com>
Date: Wed, 18 Nov 2009 16:24:05 -0200
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_at_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
Received on Wed Nov 18 2009 - 17:24:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC