[mellanox]: Add DPKG local caching support. (#4441)
Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
This commit is contained in:
parent
46fad0e0c6
commit
13bef09889
10
platform/mellanox/docker-ptf-mlnx.dep
Normal file
10
platform/mellanox/docker-ptf-mlnx.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(DOCKER_PTF_MLNX)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/docker-ptf-mlnx.mk $(PLATFORM_PATH)/docker-ptf-mlnx.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(DPATH))
|
||||
|
||||
$(DOCKER_PTF_MLNX)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(DOCKER_PTF_MLNX)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(DOCKER_PTF_MLNX)_DEP_FILES := $(DEP_FILES)
|
10
platform/mellanox/docker-saiserver-mlnx.dep
Normal file
10
platform/mellanox/docker-saiserver-mlnx.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(DOCKER_SAISERVER_MLNX)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/docker-saiserver-mlnx.mk $(PLATFORM_PATH)/docker-saiserver-mlnx.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(DPATH))
|
||||
|
||||
$(DOCKER_SAISERVER_MLNX)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(DOCKER_SAISERVER_MLNX)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(DOCKER_SAISERVER_MLNX)_DEP_FILES := $(DEP_FILES)
|
10
platform/mellanox/docker-syncd-mlnx-rpc.dep
Normal file
10
platform/mellanox/docker-syncd-mlnx-rpc.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(DOCKER_SYNCD_MLNX_RPC)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/docker-syncd-mlnx-rpc.mk $(PLATFORM_PATH)/docker-syncd-mlnx-rpc.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(DPATH))
|
||||
|
||||
$(DOCKER_SYNCD_MLNX_RPC)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(DOCKER_SYNCD_MLNX_RPC)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(DOCKER_SYNCD_MLNX_RPC)_DEP_FILES := $(DEP_FILES)
|
12
platform/mellanox/docker-syncd-mlnx.dep
Normal file
12
platform/mellanox/docker-syncd-mlnx.dep
Normal file
@ -0,0 +1,12 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(DOCKER_SYNCD_BASE)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/docker-syncd-mlnx.mk $(PLATFORM_PATH)/docker-syncd-mlnx.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(DPATH))
|
||||
|
||||
$(DOCKER_SYNCD_BASE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(DOCKER_SYNCD_BASE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(DOCKER_SYNCD_BASE)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(eval $(call add_dbg_docker,$(DOCKER_SYNCD_BASE),$(DOCKER_SYNCD_BASE_DBG)))
|
16
platform/mellanox/fw.dep
Normal file
16
platform/mellanox/fw.dep
Normal file
@ -0,0 +1,16 @@
|
||||
# DPKG FRK
|
||||
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/fw.mk $(PLATFORM_PATH)/fw.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
|
||||
$(MLNX_SPC_FW_FILE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_SPC_FW_FILE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_SPC_FW_FILE)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(MLNX_SPC2_FW_FILE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_SPC2_FW_FILE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_SPC2_FW_FILE)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(MLNX_SPC3_FW_FILE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_SPC3_FW_FILE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_SPC3_FW_FILE)_DEP_FILES := $(DEP_FILES)
|
15
platform/mellanox/hw-management.dep
Normal file
15
platform/mellanox/hw-management.dep
Normal file
@ -0,0 +1,15 @@
|
||||
# DPKG FRK
|
||||
|
||||
SPATH := $($(MLNX_HW_MANAGEMENT)_SRC_PATH)
|
||||
SLINKS := $(shell find $(SPATH) -type l -exec echo {} \; | grep -Ev ' ')
|
||||
SMDEP_PATHS := $(shell git submodule status --recursive -- $(SPATH) | awk '{print $$2}' | grep -Ev ' ')
|
||||
SMDEP_FILES := $(foreach path,$(SMDEP_PATHS),$(filter-out $(SMDEP_PATHS),$(addprefix $(path)/,$(shell cd $(path) && git ls-files | grep -Ev ' '))))
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/hw-management.mk $(PLATFORM_PATH)/hw-management.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(filter-out $(SMDEP_PATHS),$(shell git ls-files -- $(SPATH) | grep -Ev ' '))
|
||||
|
||||
$(MLNX_HW_MANAGEMENT)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_HW_MANAGEMENT)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_HW_MANAGEMENT)_DEP_FILES := $(filter-out $(SLINKS),$(DEP_FILES))
|
||||
$(MLNX_HW_MANAGEMENT)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(MLNX_HW_MANAGEMENT)_SMDEP_PATHS := $(SMDEP_PATHS)
|
10
platform/mellanox/issu-version.dep
Normal file
10
platform/mellanox/issu-version.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
SPATH := $($(ISSU_VERSION_FILE)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/issu-version.mk $(PLATFORM_PATH)/issu-version.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(ISSU_VERSION_FILE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(ISSU_VERSION_FILE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(ISSU_VERSION_FILE)_DEP_FILES := $(DEP_FILES)
|
32
platform/mellanox/libsaithrift-dev.dep
Normal file
32
platform/mellanox/libsaithrift-dev.dep
Normal file
@ -0,0 +1,32 @@
|
||||
# DPKG FRK
|
||||
|
||||
SPATH := $($(LIBSAITHRIFT_DEV)_SRC_PATH)
|
||||
SLINKS := $(shell find $(SPATH) -type l -exec echo {} \; | grep -Ev ' ')
|
||||
SMDEP_PATHS := $(SPATH) $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git submodule status --recursive | awk '{print $$2}' | grep -Ev ' '))
|
||||
SMDEP_FILES := $(foreach path,$(SMDEP_PATHS),$(filter-out $(SMDEP_PATHS),$(addprefix $(path)/,$(shell cd $(path) && git ls-files | grep -Ev ' '))))
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/libsaithrift-dev.mk $(PLATFORM_PATH)/libsaithrift-dev.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
|
||||
$(LIBSAITHRIFT_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(LIBSAITHRIFT_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(LIBSAITHRIFT_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
$(LIBSAITHRIFT_DEV)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(LIBSAITHRIFT_DEV)_SMDEP_PATHS := $(SMDEP_PATHS)
|
||||
|
||||
$(PYTHON_SAITHRIFT)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(PYTHON_SAITHRIFT)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(PYTHON_SAITHRIFT)_DEP_FILES := $(DEP_FILES)
|
||||
$(PYTHON_SAITHRIFT)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(PYTHON_SAITHRIFT)_SMDEP_PATHS := $(SMDEP_PATHS)
|
||||
|
||||
$(SAISERVER)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SAISERVER)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SAISERVER)_DEP_FILES := $(DEP_FILES)
|
||||
$(SAISERVER)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(SAISERVER)_SMDEP_PATHS := $(SMDEP_PATHS)
|
||||
|
||||
$(SAISERVER_DBG)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SAISERVER_DBG)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SAISERVER_DBG)_DEP_FILES := $(DEP_FILES)
|
||||
$(SAISERVER_DBG)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(SAISERVER_DBG)_SMDEP_PATHS := $(SMDEP_PATHS)
|
18
platform/mellanox/mft.dep
Normal file
18
platform/mellanox/mft.dep
Normal file
@ -0,0 +1,18 @@
|
||||
# DPKG FRK
|
||||
|
||||
SPATH := $($(MFT)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mft.mk $(PLATFORM_PATH)/mft.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(MFT)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MFT)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MFT)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(KERNEL_MFT)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(KERNEL_MFT)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(KERNEL_MFT)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(MFT_OEM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MFT_OEM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MFT_OEM)_DEP_FILES := $(DEP_FILES)
|
10
platform/mellanox/mlnx-ffb.dep
Normal file
10
platform/mellanox/mlnx-ffb.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(MLNX_FFB_SCRIPT)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mlnx-ffb.mk $(PLATFORM_PATH)/mlnx-ffb.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(addprefix $(DPATH),$(MLNX_FFB_SCRIPT))
|
||||
|
||||
$(MLNX_FFB_SCRIPT)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_FFB_SCRIPT)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_FFB_SCRIPT)_DEP_FILES := $(DEP_FILES)
|
@ -1,7 +1,7 @@
|
||||
# mellanox fast fast boot script
|
||||
|
||||
MLNX_FFB_SCRIPT = mlnx-ffb.sh
|
||||
$(MLNX_FFB_SCRIPT)_PATH = platform/mellanox/
|
||||
$(MLNX_FFB_SCRIPT)_PATH = $(PLATFORM_PATH)/
|
||||
SONIC_COPY_FILES += $(MLNX_FFB_SCRIPT)
|
||||
|
||||
MLNX_FILES += $(MLNX_FFB_SCRIPT)
|
||||
|
10
platform/mellanox/mlnx-onie-fw-update.dep
Normal file
10
platform/mellanox/mlnx-onie-fw-update.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(MLNX_ONIE_FW_UPDATE)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mlnx-onie-fw-update.mk $(PLATFORM_PATH)/mlnx-onie-fw-update.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(addprefix $(DPATH),$(MLNX_ONIE_FW_UPDATE))
|
||||
|
||||
$(MLNX_ONIE_FW_UPDATE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_ONIE_FW_UPDATE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_ONIE_FW_UPDATE)_DEP_FILES := $(DEP_FILES)
|
@ -1,7 +1,7 @@
|
||||
# onie update tool
|
||||
|
||||
MLNX_ONIE_FW_UPDATE = mlnx-onie-fw-update.sh
|
||||
$(MLNX_ONIE_FW_UPDATE)_PATH = platform/mellanox/
|
||||
$(MLNX_ONIE_FW_UPDATE)_PATH = $(PLATFORM_PATH)/
|
||||
SONIC_COPY_FILES += $(MLNX_ONIE_FW_UPDATE)
|
||||
|
||||
MLNX_FILES += $(MLNX_ONIE_FW_UPDATE)
|
||||
|
11
platform/mellanox/mlnx-platform-api.dep
Normal file
11
platform/mellanox/mlnx-platform-api.dep
Normal file
@ -0,0 +1,11 @@
|
||||
# DPKG FRK
|
||||
|
||||
SPATH := $($(SONIC_PLATFORM_API_PY2)_SRC_PATH)
|
||||
SLINKS := $(shell find $(SPATH) -type l -exec echo {} \; | grep -Ev ' ')
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mlnx-platform-api.mk $(PLATFORM_PATH)/mlnx-platform-api.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH) | grep -Ev ' ')
|
||||
|
||||
$(SONIC_PLATFORM_API_PY2)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SONIC_PLATFORM_API_PY2)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SONIC_PLATFORM_API_PY2)_DEP_FILES := $(filter-out $(SLINKS),$(DEP_FILES))
|
21
platform/mellanox/mlnx-sai.dep
Normal file
21
platform/mellanox/mlnx-sai.dep
Normal file
@ -0,0 +1,21 @@
|
||||
# DPKG FRK
|
||||
|
||||
SPATH := $($(MLNX_SAI)_SRC_PATH)
|
||||
SLINKS := $(shell find $(SPATH) -type l -exec echo {} \; | grep -Ev ' ')
|
||||
SMDEP_PATHS := $(shell git submodule status --recursive -- $(SPATH) | awk '{print $$2}' | grep -Ev ' ')
|
||||
SMDEP_FILES := $(foreach path,$(SMDEP_PATHS),$(filter-out $(SMDEP_PATHS),$(addprefix $(path)/,$(shell cd $(path) && git ls-files | grep -Ev ' '))))
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mlnx-sai.mk $(PLATFORM_PATH)/mlnx-sai.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(filter-out $(SMDEP_PATHS),$(shell git ls-files -- $(SPATH) | grep -Ev ' '))
|
||||
|
||||
$(MLNX_SAI)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_SAI)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_SAI)_DEP_FILES := $(filter-out $(SLINKS),$(DEP_FILES))
|
||||
$(MLNX_SAI)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(MLNX_SAI)_SMDEP_PATHS := $(SMDEP_PATHS)
|
||||
|
||||
$(MLNX_SAI_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_SAI_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_SAI_DBGSYM)_DEP_FILES := $(filter-out $(SLINKS),$(DEP_FILES))
|
||||
$(MLNX_SAI_DBGSYM)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(MLNX_SAI_DBGSYM)_SMDEP_PATHS := $(SMDEP_PATHS)
|
10
platform/mellanox/mlnx-ssd-fw-update.dep
Normal file
10
platform/mellanox/mlnx-ssd-fw-update.dep
Normal file
@ -0,0 +1,10 @@
|
||||
# DPKG FRK
|
||||
|
||||
DPATH := $($(MLNX_SSD_FW_UPDATE)_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/mlnx-ssd-fw-update.mk $(PLATFORM_PATH)/mlnx-ssd-fw-update.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(addprefix $(DPATH),$(MLNX_SSD_FW_UPDATE))
|
||||
|
||||
$(MLNX_SSD_FW_UPDATE)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(MLNX_SSD_FW_UPDATE)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(MLNX_SSD_FW_UPDATE)_DEP_FILES := $(DEP_FILES)
|
@ -1,7 +1,7 @@
|
||||
# ssd update tool
|
||||
|
||||
MLNX_SSD_FW_UPDATE = mlnx-ssd-fw-update.sh
|
||||
$(MLNX_SSD_FW_UPDATE)_PATH = platform/mellanox/
|
||||
$(MLNX_SSD_FW_UPDATE)_PATH = $(PLATFORM_PATH)/
|
||||
SONIC_COPY_FILES += $(MLNX_SSD_FW_UPDATE)
|
||||
|
||||
MLNX_FILES += $(MLNX_SSD_FW_UPDATE)
|
||||
|
3
platform/mellanox/one-image.dep
Normal file
3
platform/mellanox/one-image.dep
Normal file
@ -0,0 +1,3 @@
|
||||
# DPKG FRK
|
||||
|
||||
$(SONIC_ONE_IMAGE)_CACHE_MODE := none
|
18
platform/mellanox/rules.dep
Normal file
18
platform/mellanox/rules.dep
Normal file
@ -0,0 +1,18 @@
|
||||
# DPKG FRK
|
||||
|
||||
include $(PLATFORM_PATH)/sdk.dep
|
||||
include $(PLATFORM_PATH)/fw.dep
|
||||
include $(PLATFORM_PATH)/mft.dep
|
||||
include $(PLATFORM_PATH)/mlnx-sai.dep
|
||||
include $(PLATFORM_PATH)/hw-management.dep
|
||||
include $(PLATFORM_PATH)/mlnx-platform-api.dep
|
||||
include $(PLATFORM_PATH)/docker-syncd-mlnx.dep
|
||||
include $(PLATFORM_PATH)/docker-syncd-mlnx-rpc.dep
|
||||
include $(PLATFORM_PATH)/docker-saiserver-mlnx.dep
|
||||
include $(PLATFORM_PATH)/one-image.dep
|
||||
include $(PLATFORM_PATH)/libsaithrift-dev.dep
|
||||
include $(PLATFORM_PATH)/docker-ptf-mlnx.dep
|
||||
include $(PLATFORM_PATH)/mlnx-ffb.dep
|
||||
include $(PLATFORM_PATH)/issu-version.dep
|
||||
include $(PLATFORM_PATH)/mlnx-onie-fw-update.dep
|
||||
include $(PLATFORM_PATH)/mlnx-ssd-fw-update.dep
|
229
platform/mellanox/sdk.dep
Normal file
229
platform/mellanox/sdk.dep
Normal file
@ -0,0 +1,229 @@
|
||||
# DPKG FRK
|
||||
|
||||
# APPLIBS
|
||||
|
||||
SPATH := $($(APPLIBS)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(APPLIBS)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(APPLIBS)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(APPLIBS)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(APPLIBS_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(APPLIBS_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(APPLIBS_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(APPLIBS_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(APPLIBS_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(APPLIBS_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# IPROUTE2_MLNX
|
||||
|
||||
SPATH := $($(IPROUTE2_MLNX)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(IPROUTE2_MLNX)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(IPROUTE2_MLNX)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(IPROUTE2_MLNX)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(IPROUTE2_MLNX_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(IPROUTE2_MLNX_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(IPROUTE2_MLNX_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(IPROUTE2_MLNX_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(IPROUTE2_MLNX_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(IPROUTE2_MLNX_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SX_COMPLIB
|
||||
|
||||
SPATH := $($(SX_COMPLIB)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(SX_COMPLIB)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_COMPLIB)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_COMPLIB)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(SX_COMPLIB_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_COMPLIB_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_COMPLIB_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(SX_COMPLIB_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_COMPLIB_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_COMPLIB_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SX_EXAMPLES
|
||||
|
||||
SPATH := $($(SX_EXAMPLES)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(SX_EXAMPLES)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_EXAMPLES)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_EXAMPLES)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(SX_EXAMPLES_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_EXAMPLES_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_EXAMPLES_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(SX_EXAMPLES_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_EXAMPLES_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_EXAMPLES_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SX_GEN_UTILS
|
||||
|
||||
SPATH := $($(SX_GEN_UTILS)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(SX_GEN_UTILS)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_GEN_UTILS)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_GEN_UTILS)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(SX_GEN_UTILS_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_GEN_UTILS_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_GEN_UTILS_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(SX_GEN_UTILS_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_GEN_UTILS_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_GEN_UTILS_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SX_SCEW
|
||||
|
||||
SPATH := $($(SX_SCEW)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(SX_SCEW)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_SCEW)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_SCEW)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(SX_SCEW_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_SCEW_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_SCEW_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(SX_SCEW_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_SCEW_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_SCEW_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SXD_LIBS
|
||||
|
||||
SPATH := $($(SXD_LIBS)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(SXD_LIBS)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SXD_LIBS)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SXD_LIBS)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(SXD_LIBS_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SXD_LIBS_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SXD_LIBS_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(SXD_LIBS_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SXD_LIBS_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SXD_LIBS_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# PYTHON_SDK_API
|
||||
|
||||
SPATH := $($(PYTHON_SDK_API)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(PYTHON_SDK_API)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(PYTHON_SDK_API)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(PYTHON_SDK_API)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(PYTHON_SDK_API_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(PYTHON_SDK_API_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(PYTHON_SDK_API_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SX_ACL_HELPER
|
||||
|
||||
SPATH := $($(SX_ACL_HELPER)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(SX_ACL_HELPER)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_ACL_HELPER)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_ACL_HELPER)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(SX_ACL_HELPER_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_ACL_HELPER_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_ACL_HELPER_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(SX_ACL_HELPER_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_ACL_HELPER_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_ACL_HELPER_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# WJH_LIBS
|
||||
|
||||
SPATH := $($(WJH_LIBS)_SRC_PATH)
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(shell git ls-files -- $(SPATH))
|
||||
|
||||
$(WJH_LIBS)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(WJH_LIBS)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(WJH_LIBS)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
$(WJH_LIBS_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(WJH_LIBS_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(WJH_LIBS_DEV)_DEP_FILES := $(DEP_FILES)
|
||||
|
||||
ifeq ($(SDK_FROM_SRC),y)
|
||||
$(WJH_LIBS_DBGSYM)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(WJH_LIBS_DBGSYM)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(WJH_LIBS_DBGSYM)_DEP_FILES := $(DEP_FILES)
|
||||
endif
|
||||
|
||||
# SX_KERNEL
|
||||
|
||||
SPATH := $($(SX_KERNEL)_SRC_PATH)
|
||||
SLINKS := $(shell find $(SPATH) -type l -exec echo {} \; | grep -Ev ' ')
|
||||
SMDEP_PATHS := $(shell git submodule status --recursive -- $(SPATH) | awk '{print $$2}' | grep -Ev ' ')
|
||||
SMDEP_FILES := $(foreach path,$(SMDEP_PATHS),$(filter-out $(SMDEP_PATHS),$(addprefix $(path)/,$(shell cd $(path) && git ls-files | grep -Ev ' '))))
|
||||
DEP_FILES := $(SONIC_COMMON_FILES_LIST) $(PLATFORM_PATH)/sdk.mk $(PLATFORM_PATH)/sdk.dep
|
||||
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
|
||||
DEP_FILES += $(filter-out $(SMDEP_PATHS),$(shell git ls-files -- $(SPATH) | grep -Ev ' '))
|
||||
|
||||
$(SX_KERNEL)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_KERNEL)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_KERNEL)_DEP_FILES := $(filter-out $(SLINKS),$(DEP_FILES))
|
||||
$(SX_KERNEL)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(SX_KERNEL)_SMDEP_PATHS := $(SMDEP_PATHS)
|
||||
|
||||
$(SX_KERNEL_DEV)_CACHE_MODE := GIT_CONTENT_SHA
|
||||
$(SX_KERNEL_DEV)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
|
||||
$(SX_KERNEL_DEV)_DEP_FILES := $(filter-out $(SLINKS),$(DEP_FILES))
|
||||
$(SX_KERNEL_DEV)_SMDEP_FILES := $(filter-out $(SLINKS),$(SMDEP_FILES))
|
||||
$(SX_KERNEL_DEV)_SMDEP_PATHS := $(SMDEP_PATHS)
|
Loading…
Reference in New Issue
Block a user