x86/build: suppress EFI-related tool chain checks upon local $(MAKE) recursion
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Oct 2021 08:58:17 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Oct 2021 08:58:17 +0000 (10:58 +0200)
commit24b0ce9a5da2e648cde818055a085bcbcf24ecb0
tree4a9b79f88d3ef9483dd3e32f3b4e981c94c7481d
parent664cc3c3d381e4f9a61dcb68cbd7a6a00070370e
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>
xen/arch/x86/Makefile