Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 960d3518 authored by TheMalachite's avatar TheMalachite Committed by Gagan Malvi
Browse files

drivers: mtk-connectivity: Add Kconfig entry for enable combo debugging

Change-Id: I85aab06f322373bee8ae0ab53b68e368ac3b48d6
parent 98bfbab7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -370,3 +370,10 @@ config MTK_CONNSYS_DEDICATED_LOG_PATH
	     (by EMI or other specific path)
	  2. The scope may include (but not limited) Wi-Fi firmware log,
	     BT firmware log, GPS firmware log etc.

config MTK_COMBO_ENABLE_DEBUG
        bool "Enable debugging in connectivity drivers"
        default n
        help
          This will enable debugging for connectivity drivers.
          If unsure say n
+9 −5
Original line number Diff line number Diff line
@@ -4,6 +4,10 @@ ifeq ($(CONFIG_MTK_COMBO_CHIP),)
    $(error CONFIG_MTK_COMBO_CHIP not defined)
endif

ifneq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
    ldflags-y += -s
endif

# Force build fail on modpost warning
KBUILD_MODPOST_FAIL_ON_WARNINGS := y
###############################################################################
@@ -157,13 +161,13 @@ ccflags-y += -D WMT_UART_RX_MODE_WORK=0 # 1. work thread 0. tasklet
ccflags-y += -D WMT_SDIO_MODE=1
ccflags-y += -D WMT_CREATE_NODE_DYNAMIC=1

ifneq ($(TARGET_BUILD_VARIANT),eng)
ifeq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
ifeq ($(CONFIG_EXTREME_LOW_RAM), y)
ccflags-y += -DLOG_STP_DEBUG_DISABLE
endif
endif

ifneq ($(TARGET_BUILD_VARIANT), user)
ifeq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
    ccflags-y += -D WMT_DBG_SUPPORT=1
else
    ccflags-y += -D WMT_DBG_SUPPORT=0
@@ -187,7 +191,7 @@ endif
ifeq ($(wildcard vendor/mediatek/proprietary/external/aee_config_internal/init.aee.mtk.system.rc),)
	ccflags-y += -D CFG_WMT_STEP
else
	ifneq ($(TARGET_BUILD_VARIANT),user)
	ifeq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
		ccflags-y += -D CFG_WMT_STEP
	endif
endif
@@ -247,11 +251,11 @@ $(MODULE_NAME)-objs += debug_utility/connsys_debug_utility.o
###############################################################################
# test
###############################################################################
ifeq ($(TARGET_BUILD_VARIANT),eng)
ifeq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
ccflags-y += -I$(src)/test/include
endif

ifeq ($(TARGET_BUILD_VARIANT),eng)
ifeq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
$(MODULE_NAME)-objs += test/wmt_step_test.o
endif

+7 −0
Original line number Diff line number Diff line
@@ -9,6 +9,13 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

###############################################################################
# Necessary Check

ifneq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
    ldflags-y += -s
endif

# Force build fail on modpost warning
KBUILD_MODPOST_FAIL_ON_WARNINGS := y
###############################################################################
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ else
endif

# Disable ASSERT() for user load, enable for others
ifneq ($(TARGET_BUILD_VARIANT),user)
ifeq ($(CONFIG_MTK_COMBO_ENABLE_DEBUG), y)
    ccflags-y += -DBUILD_QA_DBG=1
else
    ccflags-y += -DBUILD_QA_DBG=0