Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion platform/barefoot/bfn-platform.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BFN_PLATFORM = bfnplatform_20220512_sai_1.10.2_deb10.deb
BFN_PLATFORM = bfnplatform_20220815_sai_1.10_deb11.deb
$(BFN_PLATFORM)_URL = "https://github.com/barefootnetworks/sonic-release-pkgs/raw/dev/$(BFN_PLATFORM)"

SONIC_ONLINE_DEBS += $(BFN_PLATFORM)
Expand Down
2 changes: 1 addition & 1 deletion platform/barefoot/bfn-sai.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BFN_SAI = bfnsdk_20220512_sai_1.10.2_deb10.deb
BFN_SAI = bfnsdk_20220815_sai_1.10_deb11.deb
$(BFN_SAI)_URL = "https://github.com/barefootnetworks/sonic-release-pkgs/raw/dev/$(BFN_SAI)"

$(BFN_SAI)_DEPENDS += $(LIBNL_GENL3_DEV)
Expand Down
2 changes: 1 addition & 1 deletion platform/barefoot/docker-syncd-bfn-rpc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(DOCKER_SYNCD_BFN_RPC)_DEPENDS += $(SYNCD_RPC_DBG) \
endif
$(DOCKER_SYNCD_BFN_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_BASE)
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_BFN_RPC)
SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_BFN_RPC)
SONIC_BULLSEYE_DOCKERS += $(DOCKER_SYNCD_BFN_RPC)
ifeq ($(ENABLE_SYNCD_RPC),y)
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_BFN_RPC)
endif
Expand Down
22 changes: 9 additions & 13 deletions platform/barefoot/docker-syncd-bfn-rpc/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ debs/
RUN apt-get purge -y syncd

## Pre-install the fundamental packages
RUN apt-get update \
RUN apt-get update \
&& apt-get -y install \
net-tools \
python-pip \
python-setuptools \
build-essential \
libssl-dev \
libffi-dev \
python-dev \
wget \
cmake \
libqt5core5a \
libqt5network5 \
libboost-atomic1.71.0
python3-setuptools \
python3-pip \
python-is-python3 \
libboost-atomic1.74.0

RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } ; \
{% for deb in docker_syncd_bfn_rpc_debs.split(' ') -%}
Expand All @@ -42,10 +38,10 @@ RUN wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \
&& cd .. \
&& rm -fr nanomsg-1.0.0 \
&& rm -f 1.0.0.tar.gz \
&& pip2 install cffi==1.7.0 \
&& pip2 install --upgrade cffi==1.7.0 \
&& pip2 install wheel \
&& pip2 install nnpy \
&& pip3 install cffi==1.7.0 \
&& pip3 install --upgrade cffi==1.7.0 \
&& pip3 install wheel \
&& pip3 install nnpy \
&& mkdir -p /opt \
&& cd /opt \
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py \
Expand Down
4 changes: 2 additions & 2 deletions platform/barefoot/docker-syncd-bfn.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# docker image for syncd

DOCKER_SYNCD_PLATFORM_CODE = bfn
include $(PLATFORM_PATH)/../template/docker-syncd-base.mk
include $(PLATFORM_PATH)/../template/docker-syncd-bullseye.mk

$(DOCKER_SYNCD_BASE)_DEPENDS += $(SYNCD)

Expand All @@ -16,4 +16,4 @@ $(DOCKER_SYNCD_BASE)_PACKAGE_NAME = syncd

$(DOCKER_SYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot

SONIC_BUSTER_DOCKERS += $(DOCKER_SYNCD_BASE)
SONIC_BULLSEYE_DOCKERS += $(DOCKER_SYNCD_BASE)
8 changes: 3 additions & 5 deletions platform/barefoot/docker-syncd-bfn/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker-config-engine-buster-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
FROM docker-config-engine-bullseye-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}

ARG docker_container_name

Expand All @@ -16,11 +16,9 @@ debs/
RUN apt-get install -y \
libxml2 \
libpcap-dev \
libusb-1.0-0-dev \
libcurl4 \
libcurl4-gnutls-dev \
libusb-1.0-0 \
libcurl3-gnutls \
libunwind8-dev \
libpython3.4 \
libc-ares2 \
libedit2 \
libgoogle-perftools4
Expand Down