[qca-nss-ecm] Add a flag to disable Hy-Fi classifier
Add a flag to disable Hy-Fi classifier in compile time. This
classifier has to remain disabled until the Hy-Fi integration
with ECM is completed.
Change-Id: I51b2d2d284dd8682e06ec5f4d404a462ae757d7d
Signed-off-by: Hai Shalom <hshalom@codeaurora.org>
diff --git a/Makefile b/Makefile
index 9c2ec4a..483d345 100755
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
obj-m += ecm.o
-ecm-y := ecm_classifier_hyfi.o \
+ecm-y := \
ecm_classifier_nl.o \
ecm_tracker_udp.o \
ecm_tracker_tcp.o \
@@ -33,6 +33,13 @@
ecm_bond_notifier.o \
ecm_init.o
+#
+# Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable
+# the Hy-Fi classifier in ECM. Currently disabled until
+# the integration with Hy-Fi is completed.
+#
+ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o
+
ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1
ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1
ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1
@@ -46,6 +53,7 @@
ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1
ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1
ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1
+ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE
#
# Include paths added for bridge and NSS header files