2019-07-17 10:46:08 -05:00
|
|
|
MLNX_SDK_BASE_URL = https://github.com/Mellanox/SAI-Implementation/raw/310eb922e133ecb3243e10efa4440fabe0ca73c7/sdk
|
|
|
|
MLNX_SDK_VERSION = 4.3.1634
|
2017-11-30 16:59:25 -06:00
|
|
|
MLNX_SDK_RDEBS += $(APPLIBS) $(IPROUTE2_MLNX) $(SX_ACL_RM) $(SX_COMPLIB) \
|
2016-12-05 13:12:19 -06:00
|
|
|
$(SX_EXAMPLES) $(SX_GEN_UTILS) $(SX_SCEW) $(SX_SDN_HAL) \
|
2019-07-02 00:33:31 -05:00
|
|
|
$(SXD_LIBS) $(TESTX) $(WJH_LIBS)
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2017-11-30 16:59:25 -06:00
|
|
|
MLNX_SDK_DEBS += $(APPLIBS_DEV) $(IPROUTE2_MLNX_DEV) $(SX_ACL_RM_DEV) \
|
2016-12-05 13:12:19 -06:00
|
|
|
$(SX_COMPLIB_DEV) $(SX_COMPLIB_DEV_STATIC) $(SX_EXAMPLES_DEV) \
|
|
|
|
$(SX_GEN_UTILS_DEV) $(SX_SCEW_DEV) $(SX_SCEW_DEV_STATIC) \
|
|
|
|
$(SX_SDN_HAL_DEV) $(SX_SDN_HAL_DEV_STATIC) $(SXD_LIBS_DEV) \
|
2019-07-02 00:33:31 -05:00
|
|
|
$(SXD_LIBS_DEV_STATIC) $(TESTX_DEV) $(WJH_LIBS_DEV)
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
APPLIBS = applibs_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
2016-12-20 15:30:48 -06:00
|
|
|
$(APPLIBS)_DEPENDS += $(SX_COMPLIB) $(SX_GEN_UTILS) $(SXD_LIBS) $(LIBNL3) $(LIBNL_GENL3)
|
2018-11-14 03:15:31 -06:00
|
|
|
$(APPLIBS)_RDEPENDS += $(SX_COMPLIB) $(SX_GEN_UTILS) $(SXD_LIBS) $(LIBNL3) $(LIBNL_GENL3)
|
2016-12-05 13:12:19 -06:00
|
|
|
APPLIBS_DEV = applibs-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(APPLIBS),$(APPLIBS_DEV)))
|
2017-11-30 16:59:25 -06:00
|
|
|
IPROUTE2_MLNX = iproute2_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
IPROUTE2_MLNX_DEV = iproute2-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(IPROUTE2_MLNX),$(IPROUTE2_MLNX_DEV)))
|
2016-12-05 13:12:19 -06:00
|
|
|
SX_COMPLIB = sx-complib_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
SX_COMPLIB_DEV = sx-complib-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(SX_COMPLIB),$(SX_COMPLIB_DEV)))
|
|
|
|
SX_EXAMPLES = sx-examples_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
2016-12-20 15:30:48 -06:00
|
|
|
$(SX_EXAMPLES)_DEPENDS += $(APPLIBS) $(SX_SCEW) $(SXD_LIBS)
|
2018-11-14 03:15:31 -06:00
|
|
|
$(SX_EXAMPLES)_RDEPENDS += $(APPLIBS) $(SX_SCEW) $(SXD_LIBS)
|
2016-12-05 13:12:19 -06:00
|
|
|
SX_EXAMPLES_DEV = sx-examples-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(SX_EXAMPLES),$(SX_EXAMPLES_DEV)))
|
|
|
|
SX_GEN_UTILS = sx-gen-utils_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
2016-12-20 15:30:48 -06:00
|
|
|
$(SX_GEN_UTILS)_DEPENDS += $(SX_COMPLIB)
|
2018-11-14 03:15:31 -06:00
|
|
|
$(SX_GEN_UTILS)_RDEPENDS += $(SX_COMPLIB)
|
2016-12-05 13:12:19 -06:00
|
|
|
SX_GEN_UTILS_DEV = sx-gen-utils-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(SX_GEN_UTILS),$(SX_GEN_UTILS_DEV)))
|
|
|
|
SX_SCEW = sx-scew_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
SX_SCEW_DEV = sx-scew-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(SX_SCEW),$(SX_SCEW_DEV)))
|
|
|
|
SXD_LIBS = sxd-libs_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
SXD_LIBS_DEV = sxd-libs-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(SXD_LIBS),$(SXD_LIBS_DEV)))
|
2016-12-08 12:31:02 -06:00
|
|
|
#packages that are required for runtime only
|
|
|
|
PYTHON_SDK_API = python-sdk-api_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
2016-12-20 15:30:48 -06:00
|
|
|
$(PYTHON_SDK_API)_DEPENDS += $(APPLIBS) $(SXD_LIBS)
|
2018-11-14 03:15:31 -06:00
|
|
|
$(PYTHON_SDK_API)_RDEPENDS += $(APPLIBS) $(SXD_LIBS)
|
2016-12-19 11:39:07 -06:00
|
|
|
SX_KERNEL = sx-kernel_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
SX_KERNEL_DEV = sx-kernel-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(SX_KERNEL),$(SX_KERNEL_DEV)))
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2019-07-02 00:33:31 -05:00
|
|
|
WJH_LIBS = wjh-libs_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
#$(WJH_LIBS)_SRC_PATH = $(PLATFORM_PATH)/sdk-src/wjh-libs
|
|
|
|
$(WJH_LIBS)_DEPENDS += $(SX_COMPLIB_DEV) $(SXD_LIBS_DEV) $(APPLIBS_DEV)
|
|
|
|
$(WJH_LIBS)_RDEPENDS += $(SX_COMPLIB) $(PYTHON_SDK_API)
|
|
|
|
WJH_LIBS_DEV = wjh-libs-dev_1.mlnx.$(MLNX_SDK_VERSION)_amd64.deb
|
|
|
|
$(eval $(call add_derived_package,$(WJH_LIBS),$(WJH_LIBS_DEV)))
|
|
|
|
|
2016-12-05 13:12:19 -06:00
|
|
|
define make_url
|
|
|
|
$(1)_URL = $(MLNX_SDK_BASE_URL)/$(1)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(foreach deb,$(MLNX_SDK_DEBS),$(call make_url,$(deb))))
|
|
|
|
$(eval $(foreach deb,$(MLNX_SDK_RDEBS),$(call make_url,$(deb))))
|
2016-12-19 11:39:07 -06:00
|
|
|
$(eval $(foreach deb,$(PYTHON_SDK_API) $(SX_KERNEL) $(SX_KERNEL_DEV),$(call make_url,$(deb))))
|
2016-12-05 13:12:19 -06:00
|
|
|
|
2016-12-19 11:39:07 -06:00
|
|
|
SONIC_ONLINE_DEBS += $(MLNX_SDK_RDEBS) $(PYTHON_SDK_API) $(SX_KERNEL)
|
2018-12-04 12:11:24 -06:00
|
|
|
|