qcacld-3.0: Code condensing for sme

When build kiwi_v2 driver, it reports below error
"make[3]: /bin/sh: Argument list too long". It's because when ar
process kiwi_v2.o, current driver generates too many characters which
over bash's limitation, so create sme.c file to includes all sme layer
common files to save some room.

Change-Id: Ib15fcb29efd6d06d48d305dcfac44de258dba259
CRs-Fixed: 3194081
This commit is contained in:
Wade Song
2022-04-09 17:23:42 +08:00
committad av Madan Koyyalamudi
förälder 4bb6f92ab3
incheckning 2502638cbf
2 ändrade filer med 41 tillägg och 3 borttagningar

12
Kbuild
Visa fil

@@ -766,15 +766,19 @@ SME_INC_DIR := $(SME_DIR)/inc
SME_SRC_DIR := $(SME_DIR)/src
SME_INC := -I$(WLAN_ROOT)/$(SME_INC_DIR) \
-I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr
-I$(WLAN_ROOT)/$(SME_SRC_DIR)/csr \
-I$(WLAN_ROOT)/$(SME_SRC_DIR)/qos \
-I$(WLAN_ROOT)/$(SME_SRC_DIR)/common \
-I$(WLAN_ROOT)/$(SME_SRC_DIR)/rrm \
-I$(WLAN_ROOT)/$(SME_SRC_DIR)/nan
ifeq ($(KERNEL_SUPPORTS_NESTED_COMPOSITES),y)
SME_CSR_OBJS := $(SME_SRC_DIR)/csr/csr_api_roam.o \
$(SME_SRC_DIR)/csr/csr_api_scan.o \
$(SME_SRC_DIR)/csr/csr_cmd_process.o \
$(SME_SRC_DIR)/csr/csr_link_list.o \
$(SME_SRC_DIR)/csr/csr_util.o \
SME_QOS_OBJS := $(SME_SRC_DIR)/qos/sme_qos.o
SME_CMN_OBJS := $(SME_SRC_DIR)/common/sme_api.o \
@@ -793,7 +797,9 @@ SME_OBJS := $(SME_CMN_OBJS) \
$(SME_RRM_OBJS) \
$(SME_NAN_OBJS) \
$(SME_NDP_OBJS)
else # KERNEL_SUPPORTS_NESTED_COMPOSITES
SME_OBJS := $(SME_SRC_DIR)/sme.o
endif
$(call add-wlan-objs,sme,$(SME_OBJS))
############ NLINK ############