Messages in this thread | | | Date | Tue, 17 Aug 2004 00:20:05 +0200 | From | Sam Ravnborg <> | Subject | Re: kbuild + kconfig: Updates |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |