From 61419f5468b917248477c02ab7dd8484e23cdfee Mon Sep 17 00:00:00 2001 From: Kalimuthu-Velappan <53821802+Kalimuthu-Velappan@users.noreply.github.com> Date: Thu, 3 Dec 2020 00:04:05 +0530 Subject: [PATCH] [build]: Fixes: fatal: not a git repository error during build (#6090) It fixes the following error during build. >>> fatal: not a git repository (or any of the parent directories): .git "SONIC_DPKG_CACHE_METHOD" : "cache" "DPKG_CACHE_PATH" : "/var/cache/sonic/artifacts" --- rules/sonic-host-service.dep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/sonic-host-service.dep b/rules/sonic-host-service.dep index 9e5d823cae..f19d30a0c0 100644 --- a/rules/sonic-host-service.dep +++ b/rules/sonic-host-service.dep @@ -1,4 +1,5 @@ +ifeq ($(INCLUDE_HOST_SERVICE), y) SPATH := $($(SONIC_HOST_SERVICE)_SRC_PATH) DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-host-service.mk rules/sonic-host-service.dep SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) @@ -8,4 +9,4 @@ $(SONIC_HOST_SERVICE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) $(SONIC_HOST_SERVICE)_DEP_FILES := $(DEP_FILES) $(SONIC_HOST_SERVICE)_SMDEP_FILES := $(SMDEP_FILES) $(SONIC_HOST_SERVICE)_SMDEP_PATHS := $(SPATH) - +endif