Re: kbuild + kconfig: Updates

Sam Ravnborg
2004-08-16T20:20:10Z

On Mon, Aug 16, 2004 at 09:01:59PM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote:
> On Mon, Aug 16, 2004 at 10:45:50PM +0200, Sam Ravnborg wrote:
> > $(single-used-m): %.o: %.c FORCE
> > + $(cmd_force_checksrc)
> > $(call if_changed_rule,cc_o_c)
> > @{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod)
> >
> >
> > That should do it?
> > I will push this if you are OK with it.
>
> Uhh... It ends up running sparse *twice* and still runs gcc on every
> file.

You are supposed to use: make C=2 only on a fully updated tree.
Then you will see sparse only being run once, and gcc will not be run
because the file is already updated.

That said it should not run sparse twice when a file needs to be updated.
Will take another look at it.

PS. Please keep me in cc:.

Sam