qcacld-3.0: Use simple lim.c to include lim layer common files

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 lim.c file to includes all lim layer
common files to save some room.

Change-Id: Ic4a1a71ebc9e42fde5e1a11b5342a7f17a9e0d91
CRs-Fixed: 3138823
This commit is contained in:
Kai Liu 2022-02-25 14:48:56 +08:00 committed by Madan Koyyalamudi
parent c938ad3f8a
commit c8bc7b1b08
2 changed files with 55 additions and 0 deletions

5
Kbuild
View File

@ -605,6 +605,7 @@ MAC_INC := -I$(WLAN_ROOT)/$(MAC_INC_DIR) \
MAC_DPH_OBJS := $(MAC_SRC_DIR)/dph/dph_hash_table.o
ifeq ($(KERNEL_SUPPORTS_NESTED_COMPOSITES),y)
MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
$(MAC_SRC_DIR)/pe/lim/lim_admit_control.o \
$(MAC_SRC_DIR)/pe/lim/lim_api.o \
@ -637,6 +638,10 @@ MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim_aid_mgmt.o \
$(MAC_SRC_DIR)/pe/lim/lim_timer_utils.o \
$(MAC_SRC_DIR)/pe/lim/lim_trace.o \
$(MAC_SRC_DIR)/pe/lim/lim_utils.o
else
#composite of all of the above is in lim.c
MAC_LIM_OBJS := $(MAC_SRC_DIR)/pe/lim/lim.o
endif
ifeq ($(CONFIG_QCOM_TDLS), y)
MAC_LIM_OBJS += $(MAC_SRC_DIR)/pe/lim/lim_process_tdls.o

50
core/mac/src/pe/lim/lim.c Normal file
View File

@ -0,0 +1,50 @@
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#include "lim_aid_mgmt.c"
#include "lim_admit_control.c"
#include "lim_api.c"
#include "lim_assoc_utils.c"
#include "lim_ft.c"
#include "lim_link_monitoring_algo.c"
#include "lim_process_action_frame.c"
#include "lim_process_assoc_req_frame.c"
#include "lim_process_assoc_rsp_frame.c"
#include "lim_process_auth_frame.c"
#include "lim_process_beacon_frame.c"
#include "lim_process_cfg_updates.c"
#include "lim_process_deauth_frame.c"
#include "lim_process_disassoc_frame.c"
#include "lim_process_message_queue.c"
#include "lim_process_mlm_req_messages.c"
#include "lim_process_mlm_rsp_messages.c"
#include "lim_process_probe_req_frame.c"
#include "lim_process_probe_rsp_frame.c"
#include "lim_process_sme_req_messages.c"
#include "lim_prop_exts_utils.c"
#include "lim_scan_result_utils.c"
#include "lim_security_utils.c"
#include "lim_send_management_frames.c"
#include "lim_send_messages.c"
#include "lim_send_sme_rsp_messages.c"
#include "lim_session.c"
#include "lim_session_utils.c"
#include "lim_sme_req_utils.c"
#include "lim_timer_utils.c"
#include "lim_trace.c"
#include "lim_utils.c"