public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* your change to prevent needless re-building of vmlinux.o
@ 2008-05-16 16:08 Jan Beulich
  2008-05-17 12:52 ` Sam Ravnborg
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Beulich @ 2008-05-16 16:08 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel

Sam,

while also looking into this issue (found time only now) I realized this is
already worked around in .26-rc2. However, it would seem to me that
suppressing the dependency on init/built-in.o altogether is likely to
cause problems in the future. Going through the version generating
logic again I realized that since vmlinux.o is always built before the first
of the (perhaps multiple, due to kallsyms) final linking stages, it ought
to be possible to simply move the version generation into the vmlinux.o
rule. And indeed, this

define rule_vmlinux-modpost
	:
	+$(call cmd,vmlinux_version)
	+$(call cmd,vmlinux-modpost)
	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost $@
	$(Q)echo 'cmd_$@ := $(cmd_vmlinux-modpost)' > $(dot-target).cmd
endef

with the two other invocations of vmlinux_version removed, seems to
do what is wanted.

What do you think? Am I overlooking some aspect here?

Btw., another slight anomaly I noticed is that modpost on the modules
is always performed (even when nothing changed in the tree), while
on vmlinux.o it is only performed when something caused a re-link. Is
that intentional, or just a to-be-tolerated side effect?

Thanks, Jan


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

end of thread, other threads:[~2008-05-19  8:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 16:08 your change to prevent needless re-building of vmlinux.o Jan Beulich
2008-05-17 12:52 ` Sam Ravnborg
2008-05-18 18:52   ` [RFC PATCH] move link of vmlinux from Makefile to a script Sam Ravnborg
2008-05-19  7:42     ` Jan Beulich
2008-05-19  8:19       ` Sam Ravnborg
2008-05-19  8:35         ` Jan Beulich
2008-05-19  7:36   ` your change to prevent needless re-building of vmlinux.o Jan Beulich

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