Parcourir la source

qcacld-3.0: Add condition to enable emulation flag

Enable driver emulation compilation flag based on kernel defconfig
settings.

Change-Id: If5e157f67ebfbf7caf19127ba5ce7813ca13a524
CRs-fixed: 2248407
Yue Ma il y a 6 ans
Parent
commit
91e1c004a5
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      Kbuild

+ 4 - 0
Kbuild

@@ -7,6 +7,9 @@ else
 endif
 
 ifeq ($(CONFIG_CNSS_QCA6290), y)
+	ifeq ($(CONFIG_CNSS_EMULATION), y)
+		CONFIG_QCA_WIFI_NAPIER_EMULATION := y
+	endif
 	CONFIG_LITHIUM := y
 	CONFIG_WLAN_FEATURE_11AX := y
 	CONFIG_WLAN_FEATURE_DFS_OFFLOAD := y
@@ -2405,6 +2408,7 @@ cppflags-$(CONFIG_NAN_CONVERGENCE) += -DWLAN_FEATURE_NAN_CONVERGENCE
 
 cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
 
+cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
 cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
 cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF
 cppflags-$(CONFIG_QCA_WIFI_QCA6290) += -DQCA_WIFI_QCA6290