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
This commit is contained in:
Mahesh Kumar Kalikot Veetil 2020-06-30 18:46:43 -07:00 • committed by nshrivas
commit 9cc4111452

View file

@ -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