qcacld-3.0: Kbuild: Cleanup PKTLOG_OBJS logic

Currently PKTLOG_OBJS are added to OBJS when CONFIG_REMOVE_PKT_LOG is
not enabled.  An upcoming change requires that assignments to OBJS be
unconditional, so relocate the condition to wrap the assignment of
PKTLOG_OBJS.

Change-Id: I34b9bea3186e5bda12e7ce0d8a1327383170b6c1
CRs-Fixed: 2868000
This commit is contained in:
Jeff Johnson 2021-02-01 13:30:02 -08:00 • committed by snandini
commit 5bf0a3641d

5
Kbuild
View file

@ -1740,6 +1740,7 @@ CDP_INC := -I$(WLAN_COMMON_INC)/$(CDP_INC_DIR)
PKTLOG_DIR := $(WLAN_COMMON_ROOT)/utils/pktlog
PKTLOG_INC := -I$(WLAN_ROOT)/$(PKTLOG_DIR)/include
ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
PKTLOG_OBJS := $(PKTLOG_DIR)/pktlog_ac.o \
$(PKTLOG_DIR)/pktlog_internal.o \
$(PKTLOG_DIR)/linux_ac.o
@ -1749,6 +1750,7 @@ ifeq ($(CONFIG_PKTLOG_LEGACY), y)
else
PKTLOG_OBJS += $(PKTLOG_DIR)/pktlog_wifi3.o
endif
endif
############ HTT ############
HTT_DIR := core/dp/htt
@ -2485,10 +2487,7 @@ ifeq ($(CONFIG_IPA_OFFLOAD), y)
OBJS += $(IPA_OBJS)
endif
ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
OBJS += $(PKTLOG_OBJS)
endif
OBJS += $(HOST_DIAG_LOG_OBJS)
OBJS += $(DISA_OBJS)
OBJS += $(ACTION_OUI_OBJS)