On 25.01.2022 12:00, Anthony PERARD wrote: > We are going to need the variable XEN_BUILD_EFI earlier. > > But a side effect of calculating the value of $(XEN_BUILD_EFI) is to > also to generate "efi/check.o" which is used for further checks. > Thus the whole chain that check for EFI support is moved to > "arch.mk". > > Some other changes are made to avoid too much duplication: > - $(efi-check): Used to avoid repeating "efi/check.*". We don't > set it to the path to the source as it would be wrong as soon > as we support out-of-tree build. > - $(LD_PE_check_cmd): As it is called twice, with an updated > $(EFI_LDFLAGS). > > $(nr-fixups) is renamed to $(efi-nr-fixups) as the former might be > a bit too generic. > > In order to avoid exporting MKRELOC, the variable is added to $(MAKE) > command line. The only modification needed is in target "build", the > modification target "$(TARGET)" will be needed with a following patch > "build: avoid re-executing the main Makefile by introducing build.mk". > > We can now revert 24b0ce9a5da2, we don't need to override efi-y on > recursion anymore. > > Signed-off-by: Anthony PERARD <anthony.per...@citrix.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com>