Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
debug ?= y
debug_symbols ?= $(debug)
-# Test coverage support
-coverage ?= n
-
XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
-e s/i86pc/x86_32/ -e s/amd64/x86_64/ \
-e s/armv7.*/arm32/ -e s/armv8.*/arm64/ \
maybe slower, but it gives very useful debugging information
in case of any Xen bugs.
+config GCOV
+ bool "Gcov Support"
+ ---help---
+ Enable gcov (a test coverage program in GCC) support.
+
config LOCK_PROFILE
bool "Lock Profiling"
---help---
$(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): CFLAGS += -DINIT_SECTIONS_ONLY
-ifeq ($(coverage),y)
+ifeq ($(CONFIG_GCOV),y)
$(filter-out %.init.o $(nogcov-y),$(obj-y) $(obj-bin-y) $(extra-y)): CFLAGS += -fprofile-arcs -ftest-coverage -DTEST_COVERAGE
endif
subdir-$(CONFIG_X86) += hvm
-subdir-$(coverage) += gcov
+subdir-$(CONFIG_GCOV) += gcov
subdir-y += libelf
subdir-$(CONFIG_HAS_DEVICE_TREE) += libfdt