build: adding out-of-tree support to the xen build
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 13 Apr 2022 10:33:21 +0000 (12:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Apr 2022 10:33:21 +0000 (12:33 +0200)
commit7115fa562fe79c8a8733f6b821d4eea62ed56516
tree2c8de852e33e887530f941874c227152949f7a68
parent5b752808ff37b7c819a26fd76329ef329c42774f
build: adding out-of-tree support to the xen build

This implement out-of-tree support, there's two ways to create an
out-of-tree build tree (after that, `make` in that new directory
works):
    make O=build
    mkdir build; cd build; make -f ../Makefile
also works with an absolute path for both.

This implementation only works if the source tree is clean, as we use
VPATH.

This patch copies most new code with handling out-of-tree build from
Linux v5.12.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Tested-by: Julien Grall <jgrall@amazon.com>
Acked-by: Ross Lagerwall <ross.lagerwall@citrix.com> # livepatch
.gitignore
xen/Makefile
xen/Rules.mk
xen/arch/x86/arch.mk
xen/arch/x86/boot/Makefile
xen/common/efi/efi-common.mk
xen/include/Makefile
xen/test/livepatch/Makefile
xen/xsm/flask/Makefile
xen/xsm/flask/ss/Makefile