From d4b85ecad1aeb1981a3f0ac3512557ec6a0bcbb3 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Thu, 23 Aug 2018 12:50:46 +0530 Subject: [PATCH] soc: Add flag GCOV_PROFILE to makefile Enable GCOV for soc if config GCOV_PROFILE is set to true. Change-Id: I01e7cf24eb78c541f6f5d5b13c5a3b21f1f18d40 Signed-off-by: Vatsal Bucha --- soc/Kbuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/Kbuild b/soc/Kbuild index 69eb0b988c9b..49ba00fccec4 100644 --- a/soc/Kbuild +++ b/soc/Kbuild @@ -133,6 +133,10 @@ ifeq ($(call cc-option-yn, -Wheader-guard),y) EXTRA_CFLAGS += -Wheader-guard endif +ifeq ($(CONFIG_SND_SOC_GCOV), y) +GCOV_PROFILE := y +endif + # Module information used by KBuild framework obj-$(CONFIG_PINCTRL_WCD) += pinctrl_wcd_dlkm.o pinctrl_wcd_dlkm-y := $(PINCTRL_WCD_OBJS)