x86/build: suppress EFI-related tool chain checks upon local $(MAKE) recursion
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:18:51 +0000 (11:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:18:51 +0000 (11:18 +0200)
commitb1ac7bb7f77b63838564e0c151f8aca80ab6a6b6
tree2361bae132d9a9c7e7b62e02cf6baf5419973cec
parent28a28fa8194107794d5b8bd08cad5a46a67f6d64
x86/build: suppress EFI-related tool chain checks upon local $(MAKE) recursion

The xen-syms and xen.efi linking steps are serialized only when the
intermediate note.o file is necessary. Otherwise both may run in
parallel. This in turn means that the compiler / linker invocations to
create efi/check.o / efi/check.efi may also happen twice in parallel.
Obviously it's a bad idea to have multiple producers of the same output
race with one another - every once in a while one may e.g. observe

objdump: efi/check.efi: file format not recognized

We don't need this EFI related checking to occur when producing the
intermediate symbol and relocation table objects, and we have an easy
way of suppressing it: Simply pass in "efi-y=", overriding the
assignments done in the Makefile and thus forcing the tool chain checks
to be bypassed.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
master commit: 24b0ce9a5da2e648cde818055a085bcbcf24ecb0
master date: 2021-10-11 10:58:17 +0200
xen/arch/x86/Makefile