mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Kbuild: Cleanly featurize Lithium flags
Define separate configuration options for the various Lithium features and use those options to set the associated ccflags macros. Change-Id: I08fee39c76963b102611b134346fe5edc95a0835 CRs-Fixed: 2224808
This commit is contained in:
parent
23fc95216a
commit
772fdfa966
1 changed files with 31 additions and 17 deletions
48
Kbuild
48
Kbuild
|
|
@ -264,6 +264,24 @@ endif
|
|||
|
||||
endif #CONFIG_HELIUMPLUS
|
||||
|
||||
ifeq ($(CONFIG_LITHIUM), y)
|
||||
CONFIG_SHADOW_V2 := y
|
||||
CONFIG_QCA6290_HEADERS_DEF := y
|
||||
CONFIG_QCA_WIFI_QCA6290 := y
|
||||
CONFIG_QCA_WIFI_QCA8074 := y
|
||||
CONFIG_QCA_WIFI_QCA8074_VP := y
|
||||
CONFIG_DP_INTR_POLL_BASED := y
|
||||
CONFIG_TX_PER_PDEV_DESC_POOL := y
|
||||
ifneq ($(CONFIG_IPA_OFFLOAD), y)
|
||||
CONFIG_WLAN_RX_HASH := y
|
||||
endif
|
||||
CONFIG_DP_TRACE := y
|
||||
CONFIG_FEATURE_TSO := y
|
||||
CONFIG_TSO_DEBUG_LOG_ENABLE := y
|
||||
CONFIG_DP_LFR := y
|
||||
CONFIG_HTT_PADDR64 := y
|
||||
endif
|
||||
|
||||
# As per target team, build is done as follows:
|
||||
# Defconfig : build with default flags
|
||||
# Slub : defconfig + CONFIG_SLUB_DEBUG=y +
|
||||
|
|
@ -2342,23 +2360,19 @@ ccflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE
|
|||
|
||||
ccflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
|
||||
|
||||
ifeq ($(CONFIG_LITHIUM), y)
|
||||
ccflags-y += -DCONFIG_SHADOW_V2
|
||||
ccflags-y += -DQCA6290_HEADERS_DEF
|
||||
ccflags-y += -DQCA_WIFI_QCA6290
|
||||
ccflags-y += -DQCA_WIFI_QCA8074
|
||||
ccflags-y += -DQCA_WIFI_QCA8074_VP
|
||||
ccflags-y += -DDP_INTR_POLL_BASED
|
||||
ccflags-y += -DTX_PER_PDEV_DESC_POOL
|
||||
ifneq ($(CONFIG_IPA_OFFLOAD), y)
|
||||
ccflags-y += -DWLAN_RX_HASH
|
||||
endif
|
||||
ccflags-y += -DCONFIG_DP_TRACE
|
||||
ccflags-y += -DFEATURE_TSO
|
||||
ccflags-y += -DTSO_DEBUG_LOG_ENABLE
|
||||
ccflags-y += -DDP_LFR
|
||||
ccflags-y += -DHTT_PADDR64
|
||||
endif
|
||||
ccflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
|
||||
ccflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
|
||||
ccflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290
|
||||
ccflags-$(CONFIG_QCA_WIFI_QCA8074) += -DQCA_WIFI_QCA8074
|
||||
ccflags-$(CONFIG_QCA_WIFI_QCA8074_VP) += -DQCA_WIFI_QCA8074_VP
|
||||
ccflags-$(CONFIG_DP_INTR_POLL_BASED) += -DDP_INTR_POLL_BASED
|
||||
ccflags-$(CONFIG_TX_PER_PDEV_DESC_POOL) += -DTX_PER_PDEV_DESC_POOL
|
||||
ccflags-$(CONFIG_WLAN_RX_HASH) += -DWLAN_RX_HASH
|
||||
ccflags-$(CONFIG_DP_TRACE) += -DCONFIG_DP_TRACE
|
||||
ccflags-$(CONFIG_FEATURE_TSO) += -DFEATURE_TSO
|
||||
ccflags-$(CONFIG_TSO_DEBUG_LOG_ENABLE) += -DTSO_DEBUG_LOG_ENABLE
|
||||
ccflags-$(CONFIG_DP_LFR) += -DDP_LFR
|
||||
ccflags-$(CONFIG_HTT_PADDR64) += -DHTT_PADDR64
|
||||
|
||||
ifeq ($(CONFIG_QCA6290_11AX), y)
|
||||
ccflags-y += -DQCA_WIFI_QCA6290_11AX
|
||||
|
|
|
|||
Loading…
Reference in a new issue