]> xenbits.xensource.com Git - xen.git/commit
xen/build: start using if_changed
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 24 Apr 2020 13:02:03 +0000 (15:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Apr 2020 13:02:03 +0000 (15:02 +0200)
commite321576f4047661111c7e069f03fc96294d7bb32
tree8240a836c941b072aa63e37bf7c3629dded2275b
parent4fdb4b71b152431b519345e6a8cc8738974db7e6
xen/build: start using if_changed

This patch start to use if_changed introduced in a previous commit.

Whenever if_changed is called, the target must have FORCE as
dependency so that if_changed can check if the command line to be
run has changed, so the macro $(real-prereqs) must be used to
discover the dependencies without "FORCE".

Whenever a target isn't in obj-y, it should be added to extra-y so the
.*.cmd dependency file associated with the target can be loaded. This
is done for xsm/flask/ and both common/lib{elf,fdt}/ and
arch/x86/Makefile.

For the targets that generate .*.d dependency files, there's going to
be two dependency files (.*.d and .*.cmd) until we can merge them
together in a later patch via fixdep from Linux.

One cleanup, libelf-relocate.o doesn't exist anymore.

We import cmd_ld and cmd_objcopy from Linux v5.4.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Rules.mk
xen/arch/arm/Makefile
xen/arch/x86/Makefile
xen/arch/x86/efi/Makefile
xen/common/libelf/Makefile
xen/common/libfdt/Makefile
xen/xsm/flask/Makefile