]> xenbits.xensource.com Git - xen.git/commit
xen: fix gcov compilation
authorWei Liu <wei.liu2@citrix.com>
Wed, 31 Aug 2016 15:26:51 +0000 (16:26 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 31 Aug 2016 15:37:37 +0000 (16:37 +0100)
commitdcf22aa0dc08c0414fa31a20db8d054711e45961
tree91badec8972ce84de17468b4b5f1fa1170bb135a
parent0ebbfa4f69cf7bd98ffd50ab35fabf9b36f2deab
xen: fix gcov compilation

Currently enabling gcov in hypervisor won't build because although
26c9d03d ("gcov: Adding support for coverage information") claimed that
%.init.o files were excluded from applying compilation options, it was
in fact not true.

Fix that by filtering out the options correctly. Because the dependency
of stub.o in x86 EFI build can't be eliminated easily and we prefer a
generalised method going forward, we introduce nogcov-y to explicitly
mark objects that don't need to build with gcov support.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Jan Beulich <JBeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen/Rules.mk
xen/arch/x86/efi/Makefile