ipc: Add flag GCOV_PROFILE to makefile

Enable GCOV if config GCOV_PROFILE is set to true.

Change-Id: Ia49884a7ed161052ff1b286970b01d160024313e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
diff --git a/ipc/Kbuild b/ipc/Kbuild
index 3ecf01d..ec9dc78 100644
--- a/ipc/Kbuild
+++ b/ipc/Kbuild
@@ -131,6 +131,10 @@
 CDEFINES += -DMULTI_IF_NAME=\"$(CHIP_NAME)\"
 endif
 
+ifeq ($(CONFIG_SND_SOC_GCOV), y)
+GCOV_PROFILE := y
+endif
+
 # Module information used by KBuild framework
 obj-$(CONFIG_MSM_QDSP6_APRV2_RPMSG) += apr_dlkm.o
 obj-$(CONFIG_MSM_QDSP6_APRV3_RPMSG) += apr_dlkm.o