build: use if_changed more consistently (and correctly) for prelink*.o
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Sep 2020 08:19:38 +0000 (10:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Sep 2020 08:19:38 +0000 (10:19 +0200)
commitdd2cfba88c3d0e144ffec07c6b5b86e54a9d98a9
tree31ccb66f300d52a09c23fd1206ae5d16a4516295
parentd4ed1d4132f5825a795d5a78505811ecd2717b5e
build: use if_changed more consistently (and correctly) for prelink*.o

Switch to $(call if_changed,ld) where possible; presumably not doing so
in e321576f4047 ("xen/build: start using if_changed") right away was an
oversight, as it did for Arm in (just) one case. It failed to add
prelink.o to $(targets), though, causing - judging from the observed
behavior on x86 - undue rebuilds of the final binary (because of
prelink.o getting rebuild for $(cmd_prelink.o) being empty, in turn
because of .prelink.o.cmd not getting read) during "make install-xen".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/Makefile
xen/arch/x86/Makefile