From 33a59db8c118f371ec40794edf20eaa005af0099 Mon Sep 17 00:00:00 2001
From: Mahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>
Date: Tue, 30 Jun 2020 18:34:44 -0700
Subject: [PATCH] kona: Add build options per WLAN chip

Unified driver build makes separate driver per chip. Each of the driver
needs unique chip selection as driver cannot support multiple chips in a
single build. Pass proper chip configuration as build option.

Change-Id: I4b136b460f4cff9f8d4dd14f21455bc98459532c
CRs-Fixed: 2724608
---
 kona/wlan.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kona/wlan.mk b/kona/wlan.mk
index 6100723..b92e22b 100644
--- a/kona/wlan.mk
+++ b/kona/wlan.mk
@@ -50,3 +50,11 @@ WLAN_CFG_OVERRIDE_qca6490 := CONFIG_CNSS_QCA6490=y
 
 # Use default_config for all chips. Used with TARGET_WLAN_CHIP.
 WLAN_CFG_USE_DEFAULT := true
+
+# Inject Kbuild options per chip
+#
+# Select proper chip configuration for building WLAN driver module. Currently
+# driver supports only one chip configuration per build.
+#
+WLAN_KBUILD_OPTIONS_qca6390 := CONFIG_CNSS_QCA6390=y
+WLAN_KBUILD_OPTIONS_qca6490 := CONFIG_CNSS_QCA6490=y
-- 
GitLab