qcacld-3.0: Compile pktlog files based on platform
Compile pktlog file based on legacy or future
chipsets as this would give us significant
code memory savings.
Change-Id: I394a9672fd84db691eef873cfd20eb1724e26073
CRs-Fixed: 2585626
diff --git a/Kbuild b/Kbuild
index 3069efc..6d03439 100644
--- a/Kbuild
+++ b/Kbuild
@@ -1421,6 +1421,12 @@
$(PKTLOG_DIR)/pktlog_internal.o \
$(PKTLOG_DIR)/linux_ac.o
+ifeq ($(CONFIG_PKTLOG_LEGACY), y)
+ PKTLOG_OBJS += $(PKTLOG_DIR)/pktlog_wifi2.o
+else
+ PKTLOG_OBJS += $(PKTLOG_DIR)/pktlog_wifi3.o
+endif
+
############ HTT ############
HTT_DIR := core/dp/htt
HTT_INC := -I$(WLAN_ROOT)/$(HTT_DIR)