common: make sure symbols-dummy.o gets rebuilt when needed
authorJan Beulich <jbeulich@suse.com>
Mon, 26 Nov 2018 14:44:05 +0000 (15:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Nov 2018 14:44:05 +0000 (15:44 +0100)
commit710e85afd21999b01f6d81ea580d2bc1f4f47978
tree8afe995495cc040060cf5d41f77e557783c2cbdf
parent9aac4a0b4372d5e3db573641cc1e5a44e3748b0b
common: make sure symbols-dummy.o gets rebuilt when needed

The per-arch top level make files don't record any dependencies for the
file, so its mere existence is enough for make to consider it up-to-
date. As of ab3e5f5ff9 ("xsplice, symbols: Implement fast symbol names
-> virtual addresses lookup") the file, however, depends on the
FAST_SYMBOL_LOOKUP config option, which may change between incremental
re-builds.

Use the $(extra-y) machinery to get the file built without an extra
recursion step into common/, but instead right when the other things in
that directory get built. Some makefile adjustments are necessary to
actually make this machinery work beyond the restricted set of place it
was used in before. Note however that an important restriction remains:
$(extra-y) may not overlap $(obj-y) or $(obj-bin-y).

Take the opportunity and also make the gendep invocation cover both
$(obj-bin-y) and $(extra-y), even if this is not directly related here.
I should have included them right away in 8b6ef9c152 ("compat: enforce
distinguishable file names in symbol table").

Reported-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/Rules.mk
xen/arch/arm/Makefile
xen/arch/x86/Makefile
xen/common/Makefile