From 9cc4111452511b3394eeb9b3d89924ba2aaac0cc Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Tue, 30 Jun 2020 18:46:43 -0700 Subject: [PATCH] qcacld-3.0: Add an option to pass build options Top layer makefile can pass chip specific build options incase of unified driver build. Change-Id: I76a9830e56cfefdb3c99ac05fe43071cf5ebccab CRs-Fixed: 2724605 --- Android.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Android.mk b/Android.mk index a7dc5ed74a59..c6d4f5e17f40 100644 --- a/Android.mk +++ b/Android.mk @@ -130,6 +130,15 @@ ifneq ($(WLAN_CFG_OVERRIDE_$(LOCAL_DEV_NAME)),) KBUILD_OPTIONS += WLAN_CFG_OVERRIDE="$(WLAN_CFG_OVERRIDE_$(LOCAL_DEV_NAME))" endif +# Pass build options per chip to Kbuild. This will be injected from upper layer +# makefile. +# +# e.g. +# WLAN_KBUILD_OPTIONS_qca6390 := CONFIG_CNSS_QCA6390=y +ifneq ($(WLAN_KBUILD_OPTIONS_$(LOCAL_DEV_NAME)),) +KBUILD_OPTIONS += "$(WLAN_KBUILD_OPTIONS_$(LOCAL_DEV_NAME))" +endif + include $(CLEAR_VARS) LOCAL_MODULE := $(WLAN_CHIPSET)_$(LOCAL_DEV_NAME).ko LOCAL_MODULE_KBUILD_NAME := $(LOCAL_MOD_NAME).ko