Fix for missing dependency in the sonic device package and added .dep file for yang module (#4471)

This commit is contained in:
Kalimuthu-Velappan 2020-05-06 05:17:08 +00:00 committed by GitHub
parent 46ef6defa7
commit fd953a437e
No account linked to committer's email address
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@ SPATH := $($(SONIC_DEVICE_DATA)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-device-data.mk rules/sonic-device-data.dep DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-device-data.mk rules/sonic-device-data.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
DEP_FILES += $(shell git ls-files $(SPATH)) DEP_FILES += $(shell git ls-files $(SPATH))
DEP_FILES += $(shell find device -type l -prune -o -type f -print )
$(SONIC_DEVICE_DATA)_CACHE_MODE := GIT_CONTENT_SHA $(SONIC_DEVICE_DATA)_CACHE_MODE := GIT_CONTENT_SHA
$(SONIC_DEVICE_DATA)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) $(SONIC_DEVICE_DATA)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)

View File

@ -0,0 +1,9 @@
SPATH := $($(SONIC_YANG_MODELS_PY3)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/sonic-yang-models-py3.mk rules/sonic-yang-models-py3.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
DEP_FILES += $(shell git ls-files $(SPATH))
$(SONIC_YANG_MODELS_PY3)_CACHE_MODE := GIT_CONTENT_SHA
$(SONIC_YANG_MODELS_PY3)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(SONIC_YANG_MODELS_PY3)_DEP_FILES := $(DEP_FILES)