Przeglądaj źródła

qcacld-3.0: Kbuild: Cleanly featurize data path debug flags

Define separate configuration options for the various data path
debug features and use those options to set the associated
ccflags macros.

Change-Id: Ia410557bb9fa22731d83b46e61f394b14781d61f
CRs-Fixed: 2255915
Nirav Shah 6 lat temu
rodzic
commit
a72db1d340

+ 2 - 6
Kbuild

@@ -1554,8 +1554,6 @@ cppflags-$(CONFIG_WLAN_FASTPATH) +=	-DWLAN_FEATURE_FASTPATH
 
 cppflags-$(CONFIG_FEATURE_PKTLOG) +=     -DFEATURE_PKTLOG
 
-cppflags-y +=	-DCONFIG_DP_TRACE
-
 ifeq ($(CONFIG_WLAN_NAPI), y)
 cppflags-y += -DFEATURE_NAPI
 cppflags-y += -DHIF_IRQ_AFFINITY
@@ -1647,10 +1645,8 @@ cppflags-$(CONFIG_QCOM_LTE_COEX) += -DFEATURE_WLAN_CH_AVOID
 
 cppflags-$(CONFIG_WLAN_FEATURE_LPSS) += -DWLAN_FEATURE_LPSS
 
-ifneq ($(TARGET_BUILD_VARIANT),user)
-cppflags-y += -DDESC_DUP_DETECT_DEBUG
-cppflags-y += -DDEBUG_RX_RING_BUFFER
-endif
+cppflags-$(CONFIG_DESC_DUP_DETECT_DEBUG) += -DDESC_DUP_DETECT_DEBUG
+cppflags-$(CONFIG_DEBUG_RX_RING_BUFFER) += -DDEBUG_RX_RING_BUFFER
 
 cppflags-$(PANIC_ON_BUG) += -DPANIC_ON_BUG
 

+ 7 - 0
configs/default_defconfig

@@ -555,3 +555,10 @@ endif
 ifneq ($(CONFIG_HIF_USB), y)
 CONFIG_WLAN_LOGGING_SOCK_SVC := y
 endif
+
+ifneq ($(TARGET_BUILD_VARIANT),user)
+CONFIG_DESC_DUP_DETECT_DEBUG := y
+CONFIG_DEBUG_RX_RING_BUFFER := y
+endif
+
+CONFIG_DP_TRACE := y

+ 3 - 0
configs/genoa.snoc.debug_defconfig

@@ -60,6 +60,9 @@ CONFIG_CHECKSUM_OFFLOAD := y
 CONFIG_QCA_SUPPORT_TX_THROTTLE := y
 CONFIG_RX_OL := y
 CONFIG_FEATURE_MONITOR_MODE_SUPPORT := y
+CONFIG_DESC_DUP_DETECT_DEBUG := y
+CONFIG_DEBUG_RX_RING_BUFFER := y
+CONFIG_DP_TRACE := y
 
 ifeq ($(CONFIG_INET_LRO), y)
 CONFIG_WLAN_LRO := y

+ 3 - 0
configs/genoa.snoc.perf_defconfig

@@ -61,6 +61,9 @@ CONFIG_CHECKSUM_OFFLOAD := y
 CONFIG_QCA_SUPPORT_TX_THROTTLE := y
 CONFIG_RX_OL := y
 CONFIG_FEATURE_MONITOR_MODE_SUPPORT := n
+CONFIG_DESC_DUP_DETECT_DEBUG := n
+CONFIG_DEBUG_RX_RING_BUFFER := n
+CONFIG_DP_TRACE := y
 
 ifeq ($(CONFIG_INET_LRO), y)
 CONFIG_WLAN_LRO := y