Browse Source

qcacld-3.0: Enable WLAN_WARN_ON_ASSERT for debug builds

QDF_ASSERT is being featurized in
I39e3ab6499210569b6ce09d77ee72f0081741989. Enable the QDF_ASSERT feature
in debug builds by default.

Change-Id: I96484e6dbebcecf17ae7877dc30906ed8fa90bd7
CRs-Fixed: 2211987
Dustin Brown 7 years ago
parent
commit
0634ba3ba9
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Kbuild

+ 7 - 1
Kbuild

@@ -276,13 +276,15 @@ BUILD_DEBUG_VERSION := 1
 #Enable this flag to build driver in diag version
 BUILD_DIAG_VERSION := 1
 
-#Do we panic on bug?  default is to warn
 ifeq ($(CONFIG_SLUB_DEBUG), y)
 	PANIC_ON_BUG := 1
+	WLAN_WARN_ON_ASSERT := 1
 else ifeq ($(CONFIG_PERF_DEBUG), y)
 	PANIC_ON_BUG := 1
+	WLAN_WARN_ON_ASSERT := 1
 else
 	PANIC_ON_BUG := 0
+	WLAN_WARN_ON_ASSERT := 0
 endif
 
 # Compile all log levels by default
@@ -2080,6 +2082,10 @@ ifeq ($(PANIC_ON_BUG),1)
 CDEFINES += -DPANIC_ON_BUG
 endif
 
+ifeq ($(WLAN_WARN_ON_ASSERT), 1)
+CDEFINES += -DWLAN_WARN_ON_ASSERT
+endif
+
 ifeq ($(CONFIG_WLAN_LOG_FATAL), y)
 CDEFINES += -DWLAN_LOG_FATAL
 endif