qcacld-3.0: Fix compile error if disable CONFIG_WDI_EVENT_ENABLE
Do not compile ol_txrx_event.c if set CONFIG_REMOVE_PKT_LOG=y
and CONFIG_WDI_EVENT_ENABLE=n with Hasting
Change-Id: I475e1d4bda818cdef66d961cb95d0193b27029f6
diff --git a/Kbuild b/Kbuild
index aaf203f..32e2ce9 100644
--- a/Kbuild
+++ b/Kbuild
@@ -2157,8 +2157,10 @@
ifeq ($(CONFIG_LITHIUM), y)
OBJS += $(HAL_OBJS)
+ifeq ($(CONFIG_WDI_EVENT_ENABLE), y)
OBJS += $(TXRX_DIR)/ol_txrx_event.o
endif
+endif
ifeq ($(CONFIG_FEATURE_FW_LOG_PARSING), y)
OBJS += $(FWLOG_OBJS)