summaryrefslogtreecommitdiff
path: root/qcwcn/wifi_hal/Android.mk
diff options
context:
space:
mode:
authormukesh agrawal <quiche@google.com>2016-04-12 18:10:48 -0700
committermukesh agrawal <quiche@google.com>2016-04-21 16:41:07 -0700
commit06674e86b6bc55c7312e02d1ad54d653cf940d24 (patch)
treee8a87e2bae11a99da534165a44b222e3679b5eae /qcwcn/wifi_hal/Android.mk
parentb2280f0b09ff9b3c1d5dd6d9086de0925ff8e07b (diff)
downloadwlan-06674e86b6bc55c7312e02d1ad54d653cf940d24.tar.gz
Wifi-HAL: enable ALOGV on userdebug builds
By default, ALOGV messages do not make it in the build. For the Wifi HAL, however, we'd like the ability to dynamically enable VERBOSE logging. Update the makefile, so that ALOGV messages are compiled into the library, on userdebug builds. BUG=27857554 TEST=manual Manual test: $ lunch aosp_bullhead-userdebug && m -j64 $ strings out/target/product/bullhead/system/lib/libwifi-service.so \ | grep 'Initiialized diag sock' -> match $ strings out/target/product/bullhead/system/lib64/libwifi-service.so \ | grep 'Initiialized diag sock' -> match $ lunch aosp_bullhead-user $ strings out/target/product/bullhead/system/lib/libwifi-service.so \ | grep 'Initiialized diag sock' -> NO match $ strings out/target/product/bullhead/system/lib64/libwifi-service.so \ | grep 'Initiialized diag sock' -> NO match Change-Id: Id592de85f6270f2392a4244cb27fe29ed23542f2
Diffstat (limited to 'qcwcn/wifi_hal/Android.mk')
-rw-r--r--qcwcn/wifi_hal/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/qcwcn/wifi_hal/Android.mk b/qcwcn/wifi_hal/Android.mk
index 53d15b6..9c7e5df 100644
--- a/qcwcn/wifi_hal/Android.mk
+++ b/qcwcn/wifi_hal/Android.mk
@@ -19,6 +19,9 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CFLAGS := -Wno-unused-parameter
+ifeq ($(TARGET_BUILD_VARIANT),userdebug)
+LOCAL_CFLAGS += "-DLOG_NDEBUG=0"
+endif
# gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion
@@ -72,6 +75,9 @@ LOCAL_REQUIRED_MODULES :=
LOCAL_CFLAGS += -Wno-unused-parameter
LOCAL_CPPFLAGS += -Wno-conversion-null
+ifeq ($(TARGET_BUILD_VARIANT),userdebug)
+LOCAL_CFLAGS += "-DLOG_NDEBUG=0"
+endif
# gscan.cpp: address of array 'cached_results[i].results' will always evaluate to 'true'
LOCAL_CLANG_CFLAGS := -Wno-pointer-bool-conversion