Browse Source

qcacld-3.0: Kbuild: Define CONFIG_FEATURE_SKB_PRE_ALLOC

Currently the switch -DFEATURE_SKB_PRE_ALLOC is inferred by examining
three different configuration options. In order to clearly separate
setting the configuration from applying the configuration create a new
CONFIG_FEATURE_SKB_PRE_ALLOC configuration parameter.

Change-Id: I301031a03fdae394748cf4cb6259044324eec6f1
CRs-Fixed: 2222914
Jeff Johnson 7 years ago
parent
commit
81132daa02
1 changed files with 9 additions and 7 deletions
  1. 9 7
      Kbuild

+ 9 - 7
Kbuild

@@ -394,6 +394,14 @@ CONFIG_ENABLE_SMMU_S1_TRANSLATION := y
 endif
 endif
 
+ifeq ($(CONFIG_ARCH_SDX20), y)
+ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
+ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
+CONFIG_FEATURE_SKB_PRE_ALLOC := y
+endif
+endif
+endif
+
 #Enable Signed firmware support for split binary format
 CONFIG_QCA_SIGNED_SPLIT_BINARY_SUPPORT := n
 
@@ -2202,13 +2210,7 @@ endif
 
 endif
 
-ifeq ($(CONFIG_ARCH_SDX20), y)
-ifeq ($(CONFIG_QCA_WIFI_SDIO), y)
-ifeq ($(CONFIG_WCNSS_SKB_PRE_ALLOC), y)
-CDEFINES += -DFEATURE_SKB_PRE_ALLOC
-endif
-endif
-endif
+ccflags-$(CONFIG_FEATURE_SKB_PRE_ALLOC) += -DFEATURE_SKB_PRE_ALLOC
 
 #Enable USB specific APIS
 ifeq ($(CONFIG_HIF_USB), y)