qcacmn: Fix the limitations in enabling memory debug on WIN

Copy the file name to a QDF local array, rather than using
the pointer to file name, to avoid access to the invalid pointer.
Also, separate out SKB debug from memory debug.
SKB debug will be enabled once the SKB related false positives are fixed.

CRs-Fixed: 2216661
Change-Id: I0ada1acb84c24c961cf614c9c47261f272959874
diff --git a/qdf/Kbuild b/qdf/Kbuild
index 9e1b2ca..2c1225b 100644
--- a/qdf/Kbuild
+++ b/qdf/Kbuild
@@ -53,6 +53,10 @@
 #linux/src/qdf_net_ioctl.o
 #linux/src/qdf_net_wext.o
 
+ifeq ($(MEMORY_DEBUG),1)
+qdf-objs += src/qdf_debug_domain.o
+endif
+
 ifeq ($(LOGGING_UTILS_SUPPORT),1)
 qdf-objs += \
 $(HOST_CMN_CONVG_NLINK)/src/wlan_nlink_srv.o \