Prop (CR): Store WLAN Unstripped in build archives

Copy qca_cld3_wlan.ko.unstripped to out symbols folder during build time.
This will save significant time to fetch the unstripped during Kernel panic analysis
by avoiding repo Sync and rebuilding the image on which issue happened.

Change-Id: I1fc720560e0f74178Montana0ef604413e5b553dbd2f
Reviewed-on: https://gerrit.mot.com/1119046
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Prashanth ChakRavarthy <a19110@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1456501
Submit-Approved: Raja Phani K <a16821@motorola.c
This commit is contained in:
K Purushotham Reddy authored and Marcelo Pincinato committed 2022-09-06 19:03:53 -03:00
1 parent b65e2dd7a2
commit 9b14f0d896
1 file changed
+12
+12
View File
@@ -132,6 +132,15 @@ ifneq ($(WLAN_CFG_OVERRIDE_$(LOCAL_DEV_NAME)),)
KBUILD_OPTIONS += WLAN_CFG_OVERRIDE="$(WLAN_CFG_OVERRIDE_$(LOCAL_DEV_NAME))"
endif
##########################################################
# Copy the unstrip file to out symbols folders
WLAN_SYMBOLS_OUT := $(TARGET_OUT_UNSTRIPPED)/$(LOCAL_PATH)
UNSTRIPPED_MODULE := $(WLAN_CHIPSET)_$(LOCAL_DEV_NAME).ko.unstripped
UNSTRIPPED_FILE_PATH := $(TARGET_OUT_INTERMEDIATES)/$(LOCAL_PATH)/$(UNSTRIPPED_MODULE)
INSTALL_WLAN_UNSTRIPPED_MODULE := mkdir -p $(WLAN_SYMBOLS_OUT); \
cp -rf $(UNSTRIPPED_FILE_PATH) $(WLAN_SYMBOLS_OUT)
include $(CLEAR_VARS)
LOCAL_MODULE := $(WLAN_CHIPSET)_$(LOCAL_DEV_NAME).ko
LOCAL_MODULE_KBUILD_NAME := $(LOCAL_MOD_NAME).ko
@@ -146,6 +155,9 @@ else
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/modules/$(WLAN_CHIPSET)
endif
# Once unstripped file is generated, copy the same to out symbols folder
LOCAL_POST_INSTALL_CMD := $(INSTALL_WLAN_UNSTRIPPED_MODULE)
include $(DLKM_DIR)/AndroidKernelModule.mk
###########################################################