Skip to content

Commit

Permalink
Adding libsai and docker-dpu-base URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanshri committed Nov 28, 2023
1 parent 23ce5f4 commit 986c566
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 34 deletions.
2 changes: 1 addition & 1 deletion platform/pensando/docker-dpu-base.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DOCKER_DPU_BASE_STEM = docker-dpu-base

DOCKER_DPU_BASE = $(DOCKER_DPU_BASE_STEM).gz

$(DOCKER_DPU_BASE)_URL = https://sonicstorage.blob.core.windows.net/public/docker-dpu-base.gz
$(DOCKER_DPU_BASE)_URL = https://github.com/pensando/dsc-artifacts/blob/main/docker-dpu-base.gz?raw=true

DOWNLOADED_DOCKER_IMAGES += $(DOCKER_DPU_BASE)

21 changes: 2 additions & 19 deletions platform/pensando/docker-dpu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@ SONIC_DOCKER_IMAGES += $(DOCKER_DPU)
$(DOCKER_DPU)_PACKAGE_NAME = dpu
$(DOCKER_DPU)_CONTAINER_NAME = dpu
$(DOCKER_DPU)_VERSION = 1.0.0
$(DOCKER_DPU)_RUN_OPT += --privileged -t
$(DOCKER_DPU)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro

#NIC_MOUNT="-v /dev/shm:/dev/shm -v /boot/nicA/nic_core:/nic -v /boot/nicA/shared/conf/gen:/nic/conf/gen"
$(DOCKER_DPU)_RUN_OPT += --privileged -t
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/update:/update
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/sysconfig/config0:/sysconfig/config0
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/sysconfig/config1:/sysconfig/config1
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/obfl:/obfl
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/data:/data
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/tmpfsshare:/tmp
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/runfs:/run
$(DOCKER_DPU)_RUN_OPT += -v /host/dpu/logfs:/var/log
$(DOCKER_DPU)_RUN_OPT += -v /sys:/sys
#$(DOCKER_DPU)_RUN_OPT += $NIC_MOUNT
$(DOCKER_DPU)_RUN_OPT += --net=host
$(DOCKER_DPU)_RUN_OPT += docker-dpu:v1

SONIC_BUSTER_DOCKERS += $(DOCKER_DPU)

SONIC_BULLSEYE_DOCKERS += $(DOCKER_DPU)
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_DPU)
10 changes: 5 additions & 5 deletions platform/pensando/sdk.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Centec SAI
# Pensando SAI
PENSANDO_SAI = libsai_1.10.1-0_arm64.deb
PENSANDO_SAI_DEV = libsai-dev_1.10.1-0_arm64.deb
$(PENSANDO_SAI)_PATH = files/dsc
$(PENSANDO_SAI_DEV)_PATH = files/dsc
$(PENSANDO_SAI)_URL = https://github.com/pensando/dsc-artifacts/blob/main/libsai_1.10.1-0_arm64.deb?raw=true
$(PENSANDO_SAI_DEV)_URL = https://github.com/pensando/dsc-artifacts/blob/main/libsai-dev_1.10.1-0_arm64.deb?raw=true

$(eval $(call add_conflict_package,$(PENSANDO_SAI_DEV),$(LIBSAIVS_DEV)))

SONIC_COPY_DEBS += $(PENSANDO_SAI)
SONIC_COPY_DEBS += $(PENSANDO_SAI_DEV)
SONIC_ONLINE_DEBS += $(PENSANDO_SAI)
SONIC_ONLINE_DEBS += $(PENSANDO_SAI_DEV)
10 changes: 1 addition & 9 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1096,15 +1096,6 @@ $(addprefix $(TARGET_PATH)/,$(DOWNLOADED_DOCKER_IMAGES)) : $(TARGET_PATH)/%.gz :

$(FOOTER)

DOCKER_LOAD_DOWNLOADED_TARGETS = $(addsuffix -load,$(addprefix $(TARGET_PATH)/, \
$(DOWNLOADED_DOCKER_IMAGES)))

$(DOCKER_LOAD_DOWNLOADED_TARGETS) : $(TARGET_PATH)/%.gz-load : .platform docker-start $$(TARGET_PATH)/$$*.gz
$(HEADER)
$(call docker-image-load,$*)
$(FOOTER)


# Targets for building docker images
$(addprefix $(TARGET_PATH)/, $(DOCKER_IMAGES)) : $(TARGET_PATH)/%.gz : .platform docker-start \
$$(addprefix $$($$*.gz_DEBS_PATH)/,$$($$*.gz_DEPENDS)) \
Expand Down Expand Up @@ -1264,6 +1255,7 @@ SONIC_TARGET_LIST += $(addprefix $(TARGET_PATH)/, $(DOCKER_DBG_IMAGES))

DOCKER_LOAD_TARGETS = $(addsuffix -load,$(addprefix $(TARGET_PATH)/, \
$(SONIC_SIMPLE_DOCKER_IMAGES) \
$(DOWNLOADED_DOCKER_IMAGES) \
$(DOCKER_IMAGES) \
$(DOCKER_DBG_IMAGES)))

Expand Down

0 comments on commit 986c566

Please sign in to comment.