[build]: Update the make cache mode for opennsl-module-dnx (#8391)

Fix warning shown during compilation

[ DPKG ] Cache is not enabled for opennsl-modules-dnx_5.0.0.4_amd64.deb package
This commit is contained in:
judyjoseph 2021-08-10 07:27:01 -07:00 committed by GitHub
parent 76d5223c9a
commit abc998a89e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
# Broadcom SAI modules
MPATH := $($(BRCM_OPENNSL_KERNEL)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) platform/broadcom/sai-modules.mk platform/broadcom/sai-modules.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
@ -8,3 +8,14 @@ $(BRCM_OPENNSL_KERNEL)_CACHE_MODE := GIT_CONTENT_SHA
$(BRCM_OPENNSL_KERNEL)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(BRCM_OPENNSL_KERNEL)_DEP_FILES := $(DEP_FILES)
# SAI bcm modules for DNX family ASIC
MPATH_DNX := $($(BRCM_DNX_OPENNSL_KERNEL)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) platform/broadcom/sai-modules.mk platform/broadcom/sai-modules.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
SMDEP_FILES := $(addprefix $(MPATH_DNX)/,$(shell cd $(MPATH_DNX) && git ls-files))
$(BRCM_DNX_OPENNSL_KERNEL)_CACHE_MODE := GIT_CONTENT_SHA
$(BRCM_DNX_OPENNSL_KERNEL)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(BRCM_DNX_OPENNSL_KERNEL)_DEP_FILES := $(DEP_FILES)
$(BRCM_DNX_OPENNSL_KERNEL)_SMDEP_FILES := $(SMDEP_FILES)
$(BRCM_DNX_OPENNSL_KERNEL)_SMDEP_PATHS := $(MPATH_DNX)