From 1db35728867cb3dbeeedddebe6df8971e78d85e9 Mon Sep 17 00:00:00 2001 From: Abhilash Date: Fri, 23 Sep 2022 14:38:39 +0530 Subject: [PATCH] qcacld-3.0: Move COAP related INCS into feature flag Currently implemented change for COAP causes to append header files to INCS even if CONFIG_WLAN_FEATURE_COAP is disabled. This leads to compilation hard stop due to overflow of argumnets to shell. ie, by moving COAP related code under feature flag can help to reduce shell arguments when COAP is disabled. Change-Id: If1f8334229a601f7415cbad876a7c9e0fcfb1370 CRs-Fixed: 3299853 --- Kbuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Kbuild b/Kbuild index ddd4f356d0..3ab6f26121 100644 --- a/Kbuild +++ b/Kbuild @@ -2629,6 +2629,7 @@ endif $(call add-wlan-objs,coex,$(COEX_OBJS)) ###### COAP ######## +ifeq ($(CONFIG_WLAN_FEATURE_COAP), y) COAP_HDD_SRC := core/hdd/src COAP_OS_IF_SRC := os_if/coap/src COAP_TGT_SRC := components/target_if/coap/src @@ -2642,7 +2643,6 @@ COAP_DISPATCHER_INC := -I$(WLAN_ROOT)/components/coap/dispatcher/inc COAP_CORE_INC := -I$(WLAN_ROOT)/components/coap/core/inc COAP_WMI_INC := -I$(WLAN_ROOT)/components/wmi/inc -ifeq ($(CONFIG_WLAN_FEATURE_COAP), y) COAP_OBJS := \ $(COAP_HDD_SRC)/wlan_hdd_coap.o \ $(COAP_OS_IF_SRC)/wlan_cfg80211_coap.o \ @@ -2651,9 +2651,8 @@ COAP_OBJS := \ $(COAP_DISPATCHER_SRC)/wlan_coap_tgt_api.o \ $(COAP_DISPATCHER_SRC)/wlan_coap_ucfg_api.o \ $(COAP_WMI_SRC)/wmi_unified_coap_tlv.o -endif - $(call add-wlan-objs,coap,$(COAP_OBJS)) +endif ############## HTC ########## HTC_DIR := htc