2019-10-31 11:13:35 -05:00
|
|
|
SDK_VERSION = 3.0.0
|
|
|
|
SAI_VERSION = 1.5.0
|
|
|
|
SAI_COMMIT_ID = 426624
|
|
|
|
|
|
|
|
# Place here URL where SAI deb exist
|
|
|
|
NEPHOS_SAI_DEB_LOCAL_URL =
|
|
|
|
export NEPHOS_SAI_DEB_LOCAL_URL
|
|
|
|
#
|
|
|
|
ifneq ($(NEPHOS_SAI_DEB_LOCAL_URL), )
|
|
|
|
SAI_FROM_LOCAL = y
|
|
|
|
else
|
|
|
|
SAI_FROM_LOCAL = n
|
|
|
|
endif
|
|
|
|
|
2018-12-05 02:30:38 -06:00
|
|
|
NEPHOS_SAI = libsainps_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb
|
2019-10-31 11:13:35 -05:00
|
|
|
ifeq ($(SAI_FROM_LOCAL), y)
|
|
|
|
$(NEPHOS_SAI)_PATH = $(NEPHOS_SAI_DEB_LOCAL_URL)
|
|
|
|
else
|
2018-12-05 02:30:38 -06:00
|
|
|
$(NEPHOS_SAI)_URL = "https://github.com/NephosInc/SONiC/raw/master/sai/libsainps_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb"
|
2019-10-31 11:13:35 -05:00
|
|
|
endif
|
2017-12-22 12:04:29 -06:00
|
|
|
|
2018-12-05 02:30:38 -06:00
|
|
|
NEPHOS_SAI_DEV = libsainps-dev_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb
|
2017-12-22 12:04:29 -06:00
|
|
|
$(eval $(call add_derived_package,$(NEPHOS_SAI),$(NEPHOS_SAI_DEV)))
|
2019-10-31 11:13:35 -05:00
|
|
|
ifeq ($(SAI_FROM_LOCAL), y)
|
|
|
|
$(NEPHOS_SAI_DEV)_PATH = $(NEPHOS_SAI_DEB_LOCAL_URL)
|
|
|
|
else
|
2018-12-05 02:30:38 -06:00
|
|
|
$(NEPHOS_SAI_DEV)_URL = "https://github.com/NephosInc/SONiC/raw/master/sai/libsainps-dev_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb"
|
2019-10-31 11:13:35 -05:00
|
|
|
endif
|
2017-12-22 12:04:29 -06:00
|
|
|
|
2019-10-31 11:13:35 -05:00
|
|
|
ifeq ($(SAI_FROM_LOCAL), y)
|
|
|
|
SONIC_COPY_DEBS += $(NEPHOS_SAI) $(NEPHOS_SAI_DEV)
|
|
|
|
else
|
2017-12-22 12:04:29 -06:00
|
|
|
SONIC_ONLINE_DEBS += $(NEPHOS_SAI) $(NEPHOS_SAI_DEV)
|
2019-10-31 11:13:35 -05:00
|
|
|
endif
|
2017-12-22 12:04:29 -06:00
|
|
|
$(NEPHOS_SAI_DEV)_DEPENDS += $(NEPHOS_SAI)
|