build: use if_changed more consistently (and correctly) for prelink*.o
authorJan Beulich <jbeulich@suse.com>
Wed, 4 Nov 2020 10:01:02 +0000 (11:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 4 Nov 2020 10:01:02 +0000 (11:01 +0100)
commit9f954ae7fb1c7dc3b02e5ccac6978c3a8e86086e
tree08809c9fbf60210e524c7e055f609cdfcf0485da
parent5784d1e9424151adfdc836535489bd068c6c0700
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>
master commit: dd2cfba88c3d0e144ffec07c6b5b86e54a9d98a9
master date: 2020-09-22 10:19:38 +0200
xen/arch/arm/Makefile
xen/arch/x86/Makefile