[nephos] support SAI 1.5.0 and fix docker syncd related makefile error (#3684)
- support SAI 1.5.0 - fix docker syncd related makefile error
This commit is contained in:
parent
cff30c59d0
commit
f3c92e7779
@ -10,8 +10,9 @@ $(DOCKER_SYNCD_NEPHOS_RPC)_DEPENDS += $(SYNCD_RPC_DBG) \
|
||||
$(LIBSAIREDIS_DBG)
|
||||
endif
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_FILES += $(DSSERVE) $(NPX_DIAG)
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_NEPHOS)
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_BASE)
|
||||
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_NEPHOS_RPC)
|
||||
SONIC_STRETCH_DOCKERS += $(DOCKER_SYNCD_NEPHOS_RPC)
|
||||
ifeq ($(ENABLE_SYNCD_RPC),y)
|
||||
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_NEPHOS_RPC)
|
||||
endif
|
||||
@ -19,5 +20,6 @@ endif
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_CONTAINER_NAME = syncd
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += --net=host --privileged -t
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||
$(DOCKER_SYNCD_NEPHOS_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
|
||||
|
@ -3,7 +3,8 @@
|
||||
DOCKER_SYNCD_PLATFORM_CODE = nephos
|
||||
include $(PLATFORM_PATH)/../template/docker-syncd-base.mk
|
||||
|
||||
$(DOCKER_SYNCD_BASE)_DEPENDS += $(SYNCD) $(PYTHON_SDK_API)
|
||||
$(DOCKER_SYNCD_BASE)_DEPENDS += $(SYNCD)
|
||||
$(DOCKER_SYNCD_BASE)_FILES += $(DSSERVE) $(NPX_DIAG)
|
||||
|
||||
$(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
||||
$(LIBSWSSCOMMON_DBG) \
|
||||
@ -11,3 +12,7 @@ $(DOCKER_SYNCD_BASE)_DBG_DEPENDS += $(SYNCD_DBG) \
|
||||
$(LIBSAIREDIS_DBG)
|
||||
|
||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot
|
||||
$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
|
||||
|
||||
$(DOCKER_SYNCD_BASE)_BASE_IMAGE_FILES += npx_diag:/usr/bin/npx_diag
|
||||
|
||||
|
@ -32,7 +32,9 @@ debs/{{ deb }}{{' '}}
|
||||
##debs/{{ deb }}{{' '}}
|
||||
##{%- endfor %}
|
||||
|
||||
COPY ["start.sh", "/usr/bin/"]
|
||||
COPY ["files/dsserve", "files/npx_diag", "start.sh", "/usr/bin/"]
|
||||
RUN chmod +x /usr/bin/npx_diag /usr/bin/dsserve
|
||||
|
||||
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
|
||||
|
||||
## Clean up
|
||||
|
@ -2,9 +2,25 @@
|
||||
|
||||
VERSION = 1.0.0
|
||||
|
||||
ifneq ($(NEPHOS_SAI_DEB_LOCAL_URL), )
|
||||
SDK_FROM_LOCAL = y
|
||||
else
|
||||
SDK_FROM_LOCAL = n
|
||||
endif
|
||||
|
||||
SDK_VERSION = 3.0.0
|
||||
LINUX_VER = 4.9.0-9-2
|
||||
SDK_COMMIT_ID = 529202
|
||||
|
||||
ifeq ($(SAI_FROM_LOCAL), y)
|
||||
NEPHOS_MODULE = nps-modules-$(LINUX_VER)_$(SDK_VERSION)_$(SDK_COMMIT_ID)_amd64.deb
|
||||
$(NEPHOS_MODULE)_PATH = $(NEPHOS_SAI_DEB_LOCAL_URL)
|
||||
SONIC_COPY_DEBS += $(NEPHOS_MODULE)
|
||||
else
|
||||
NEPHOS_MODULE = nephos-modules_$(VERSION)_amd64.deb
|
||||
$(NEPHOS_MODULE)_SRC_PATH = $(PLATFORM_PATH)/nephos-modules
|
||||
$(NEPHOS_MODULE)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON)
|
||||
SONIC_DPKG_DEBS += $(NEPHOS_MODULE)
|
||||
endif
|
||||
|
||||
SONIC_STRETCH_DEBS += $(NEPHOS_MODULE)
|
||||
|
@ -14,8 +14,9 @@ $(NPX_DIAG)_URL = "https://github.com/NephosInc/SONiC/raw/master/sdk/npx_diag"
|
||||
|
||||
WARM_VERIFIER = warm-verifier
|
||||
$(WARM_VERIFIER)_URL = "https://github.com/NephosInc/SONiC/raw/master/sai/warm-verifier"
|
||||
|
||||
DSSERVE = dsserve
|
||||
$(DSSERVE)_URL = "https://sonicstorage.blob.core.windows.net/packages/20170518/dsserve?sv=2015-04-05&sr=b&sig=gyNbgSL%2FvpMXDdpboVkIJcTKMRdGgEaOR9OukHhEsu8%3D&se=2030-03-31T23%3A06%3A35Z&sp=r"
|
||||
$(DSSERVE)_URL = "https://sonicstorage.blob.core.windows.net/packages/20190307/dsserve?sv=2015-04-05&sr=b&sig=lk7BH3DtW%2F5ehc0Rkqfga%2BUCABI0UzQmDamBsZH9K6w%3D&se=2038-05-06T22%3A34%3A45Z&sp=r"
|
||||
|
||||
SONIC_ONLINE_FILES += $(NPX_DIAG) $(WARM_VERIFIER) $(DSSERVE)
|
||||
|
||||
|
@ -1,12 +1,35 @@
|
||||
SDK_VERSION = 2.0.8
|
||||
SAI_VERSION = 1.4.1
|
||||
SAI_COMMIT_ID = cbb99f
|
||||
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
|
||||
|
||||
NEPHOS_SAI = libsainps_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb
|
||||
ifeq ($(SAI_FROM_LOCAL), y)
|
||||
$(NEPHOS_SAI)_PATH = $(NEPHOS_SAI_DEB_LOCAL_URL)
|
||||
else
|
||||
$(NEPHOS_SAI)_URL = "https://github.com/NephosInc/SONiC/raw/master/sai/libsainps_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb"
|
||||
endif
|
||||
|
||||
NEPHOS_SAI_DEV = libsainps-dev_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb
|
||||
$(eval $(call add_derived_package,$(NEPHOS_SAI),$(NEPHOS_SAI_DEV)))
|
||||
ifeq ($(SAI_FROM_LOCAL), y)
|
||||
$(NEPHOS_SAI_DEV)_PATH = $(NEPHOS_SAI_DEB_LOCAL_URL)
|
||||
else
|
||||
$(NEPHOS_SAI_DEV)_URL = "https://github.com/NephosInc/SONiC/raw/master/sai/libsainps-dev_$(SDK_VERSION)_sai_$(SAI_VERSION)_$(SAI_COMMIT_ID)_amd64.deb"
|
||||
endif
|
||||
|
||||
ifeq ($(SAI_FROM_LOCAL), y)
|
||||
SONIC_COPY_DEBS += $(NEPHOS_SAI) $(NEPHOS_SAI_DEV)
|
||||
else
|
||||
SONIC_ONLINE_DEBS += $(NEPHOS_SAI) $(NEPHOS_SAI_DEV)
|
||||
endif
|
||||
$(NEPHOS_SAI_DEV)_DEPENDS += $(NEPHOS_SAI)
|
||||
|
Loading…
Reference in New Issue
Block a user