build: grab common EFI source files in arch specific dir
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 5 Apr 2022 09:33:29 +0000 (11:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Apr 2022 09:33:29 +0000 (11:33 +0200)
commit39341fba7cb292d16ae77f54aaff1af3538f9115
tree5792e621fe1edf909e18604a39391c227e31a064
parente270af94280e6a9610705ebc1fdd1d7a9b1f8a98
build: grab common EFI source files in arch specific dir

Rather than preparing the efi source file, we will make the symbolic
link as needed from the build location.

The `ln` command is run every time to allow to update the link in case
the source tree change location.

This patch also introduce "efi-common.mk" which allow to reuse the
common make instructions without having to duplicate them into each
arch.

And now that we have a list of common source file, we can start to
remove the links to the source files on clean.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/Makefile
xen/arch/arm/efi/Makefile
xen/arch/x86/efi/Makefile
xen/common/efi/efi-common.mk [new file with mode: 0644]