summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrupali Dhanvijay <quic_kdhanvij@quicinc.com>2022-11-10 12:04:32 +0530
committerrthavti <quic_rthavti@quicinc.com>2023-02-02 18:31:02 +0530
commit20a4c1ebfeae71dd9b1f4bfeeae77c9f9967ed78 (patch)
treeae50e8711296053cde3f8a7a1fd87311bf04ab76
parent1beb94b6049dbe7c7ab337667374b4b83fab22dc (diff)
downloadwlan-platform-20a4c1ebfeae71dd9b1f4bfeeae77c9f9967ed78.tar.gz
wlan_platform: Update Makefile to build CNSS drivers for Atherton_target
Currently CNSS2 is getting compiled by default and it depends on MHI & PCIE driver code and in Atherton_target MHI & PCIE code is not enabled. To avoid CNSS2 driver compilation, add CONFIG_PCI_MSM check in Makefile. Change-Id: I9ab82aeca945d29d3608e65ecbe69902f8a5b47b CRs-Fixed: 3356064
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 17f455a..bf9e3ca 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,12 @@ WLAN_PLATFORM_ROOT = $(shell pwd)
KBUILD_OPTIONS := WLAN_PLATFORM_ROOT=$(WLAN_PLATFORM_ROOT)
ifeq ($(USE_EXTERNAL_CONFIGS),)
KBUILD_OPTIONS += CONFIG_CNSS_OUT_OF_TREE=y
+
+ifneq (,$(filter $(CONFIG_PCI_MSM),y m))
+KBUILD_OPTIONS += CONFIG_CNSS2=m
+KBUILD_OPTIONS += CONFIG_CNSS2_QMI=y
+KBUILD_OPTIONS += CONFIG_CNSS2_DEBUG=y
+endif
KBUILD_OPTIONS += CONFIG_ICNSS2=m
KBUILD_OPTIONS += CONFIG_ICNSS2_QMI=y
KBUILD_OPTIONS += CONFIG_ICNSS2_DEBUG=y