Browse Source

qcacld-3.0: Kbuild: Cleanup HOST_DIAG_LOG_OBJS logic

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

Change-Id: Icdf6898b848f682d9617537394651f533ba81553
CRs-Fixed: 2867999
Jeff Johnson 4 years ago
parent
commit
59ea3a0289
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Kbuild

+ 2 - 3
Kbuild

@@ -485,7 +485,9 @@ HOST_DIAG_LOG_SRC_DIR :=	$(HOST_DIAG_LOG_DIR)/src
 HOST_DIAG_LOG_INC :=	-I$(WLAN_ROOT)/$(HOST_DIAG_LOG_INC_DIR) \
 			-I$(WLAN_ROOT)/$(HOST_DIAG_LOG_SRC_DIR)
 
+ifeq ($(BUILD_DIAG_VERSION), y)
 HOST_DIAG_LOG_OBJS +=	$(HOST_DIAG_LOG_SRC_DIR)/host_diag_log.o
+endif
 
 ############ EPPING ############
 EPPING_DIR :=	$(WLAN_COMMON_ROOT)/utils/epping
@@ -2570,10 +2572,7 @@ ifeq ($(CONFIG_REMOVE_PKT_LOG), n)
 OBJS +=		$(PKTLOG_OBJS)
 endif
 
-ifeq ($(BUILD_DIAG_VERSION), y)
 OBJS +=		$(HOST_DIAG_LOG_OBJS)
-endif
-
 OBJS +=		$(DISA_OBJS)
 OBJS +=		$(ACTION_OUI_OBJS)
 OBJS +=		$(PKT_CAPTURE_OBJS)