public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Replacement for "make SUBDIRS=...." in 2.5.63?
@ 2003-02-25  6:33 Adam J. Richter
  2003-02-25 17:04 ` Kai Germaschewski
  0 siblings, 1 reply; 5+ messages in thread
From: Adam J. Richter @ 2003-02-25  6:33 UTC (permalink / raw)
  To: linux-kernel

	I see that if I do something like "make SUBDIRS=net/ipv4 modules",
I get warnings like:

*** Warning: Overriding SUBDIRS on the command line can cause inconsistencies
*** Uh-oh, you have stale module entries. You messed with SUBDIRS

	What is the proper way to rebuild just one subdirectory?  How
about for building externally provided modules?  Is this is a new
limitation of kbuild?  If so, I think it will reduce my productivity,
and probably developer productivity on average.  I need to rebuild
small sets of modules or core kernel subdirectories frequently.  I'd
like to know what benefits I get from this so that I can measure
whether this really saves me time somehow.

	I suspect that this was added to support putting module
dependencies into the ".ko" files, which might be underlying issue
that needs a cost/benefit review, but perhaps there is some other
factor that I'm just unaware of.

	Any answers to these questions would be appreciated.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Replacement for "make SUBDIRS=...." in 2.5.63?
@ 2003-02-25 19:26 Adam J. Richter
  0 siblings, 0 replies; 5+ messages in thread
From: Adam J. Richter @ 2003-02-25 19:26 UTC (permalink / raw)
  To: kai; +Cc: linux-kernel

On Tue, 25 Feb 2003, Kai Germaschewski wrote;
>On Mon, 24 Feb 2003, Adam J. Richter wrote:

>> 	I see that if I do something like "make SUBDIRS=net/ipv4 modules",
>> I get warnings like:
>> 
>> *** Warning: Overriding SUBDIRS on the command line can cause inconsistencies
>> *** Uh-oh, you have stale module entries. You messed with SUBDIRS

>The first warning only explicitly states a fact which has always been 
>true: If you hide information from kbuild by not letting it descend into 
>all subdirectories (but only the ones you specified on the command line), 
>you do not get a guarantee that everything is properly up-to-date.

[...]

>As I said, the warning only states what was always true. However, the
>reason it was added now is that the module postprocessing step needs a
>list of all modules to get symbol versioning right (and it needs to be
>sure that all those modules are up-to-date w.r.t the current .config etc).

	In the past, one could rebuild symbol versions with the faster
step of "make depend".  It's fine if you want to combine code
generation and generating symbol information in one step when all of
the .o's are being built, but it would be nice to still have the
ability to just update the symbol information.  I'm not necessarily
volunteering to add this (but who knows), but I'd like to know if
there is some reason why this couldn't be added to the current kbuild.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-28 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25  6:33 Replacement for "make SUBDIRS=...." in 2.5.63? Adam J. Richter
2003-02-25 17:04 ` Kai Germaschewski
2003-02-28 12:48   ` Gerd Knorr
2003-02-28 16:05   ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2003-02-25 19:26 Adam J. Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox