From 20f301f4bb01d196d382c936a50b7ed3115a604b Mon Sep 17 00:00:00 2001 From: Ryan Campbell Date: Tue, 18 Oct 2016 10:25:15 -0700 Subject: [PATCH] Define coverage paths using comma-separated list. Change COVERAGE_PATHS to access a comma-separated list of paths instead of a space-separated list to make for easier escaping in configuration files. Test: tested using local bullhead build with coverage on lights and nfc Change-Id: Iec014c8b4fbefcbcc5d865e6acba92bf6364ee3a --- core/binary.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/binary.mk b/core/binary.mk index aca32d779b..3b889266b7 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -58,7 +58,7 @@ my_additional_dependencies := $(LOCAL_ADDITIONAL_DEPENDENCIES) my_export_c_include_dirs := $(LOCAL_EXPORT_C_INCLUDE_DIRS) my_export_c_include_deps := $(LOCAL_EXPORT_C_INCLUDE_DEPS) -ifneq (,$(strip $(foreach dir,$(COVERAGE_PATHS),$(filter $(dir)%,$(LOCAL_PATH))))) +ifneq (,$(strip $(foreach dir,$(subst $(comma),$(space),$(COVERAGE_PATHS)),$(filter $(dir)%,$(LOCAL_PATH))))) my_native_coverage := true else my_native_coverage := false