|
| 1 | +# Agera2 PAI Library Package - URL-based download similar to broncos |
| 2 | +LIBSAI_AGERA2_VERSION = 3.14.0-1 |
| 3 | +LIBSAI_AGERA2_BRANCH_NAME = REL_3.14 |
| 4 | + |
| 5 | +LIBSAI_AGERA2_URL_PREFIX = "https://packages.trafficmanager.net/public/sai/bcmpai/$(LIBSAI_AGERA2_BRANCH_NAME)/$(LIBSAI_AGERA2_VERSION)" |
| 6 | + |
| 7 | +# Runtime package` |
| 8 | +LIBSAI_AGERA2 = libsaiagera2_$(LIBSAI_AGERA2_VERSION)_amd64.deb |
| 9 | +$(LIBSAI_AGERA2)_URL = "$(LIBSAI_AGERA2_URL_PREFIX)/$(LIBSAI_AGERA2)" |
| 10 | + |
| 11 | +ifneq ($($(LIBSAI_AGERA2)_URL),) |
| 12 | + |
| 13 | +DOCKER_GBSYNCD_AGERA2_STEM = docker-gbsyncd-agera2 |
| 14 | +DOCKER_GBSYNCD_AGERA2 = $(DOCKER_GBSYNCD_AGERA2_STEM).gz |
| 15 | +DOCKER_GBSYNCD_AGERA2_DBG = $(DOCKER_GBSYNCD_AGERA2_STEM)-$(DBG_IMAGE_MARK).gz |
| 16 | + |
| 17 | +$(DOCKER_GBSYNCD_AGERA2)_FILES += $(DSSERVE) |
| 18 | + |
| 19 | +$(DOCKER_GBSYNCD_AGERA2)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BOOKWORM) |
| 20 | + |
| 21 | +$(DOCKER_GBSYNCD_AGERA2)_DBG_DEPENDS += $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_DEPENDS) |
| 22 | + |
| 23 | +$(DOCKER_GBSYNCD_AGERA2)_DBG_IMAGE_PACKAGES = $($(DOCKER_CONFIG_ENGINE_BOOKWORM)_DBG_IMAGE_PACKAGES) |
| 24 | + |
| 25 | +SONIC_DOCKER_IMAGES += $(DOCKER_GBSYNCD_AGERA2) |
| 26 | +SONIC_BOOKWORM_DOCKERS += $(DOCKER_GBSYNCD_AGERA2) |
| 27 | +SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_GBSYNCD_AGERA2) |
| 28 | + |
| 29 | +SONIC_DOCKER_DBG_IMAGES += $(DOCKER_GBSYNCD_AGERA2_DBG) |
| 30 | +SONIC_BOOKWORM_DBG_DOCKERS += $(DOCKER_GBSYNCD_AGERA2_DBG) |
| 31 | +SONIC_INSTALL_DOCKER_DBG_IMAGES += $(DOCKER_GBSYNCD_AGERA2_DBG) |
| 32 | + |
| 33 | +$(DOCKER_GBSYNCD_AGERA2)_CONTAINER_NAME = gbsyncd |
| 34 | +$(DOCKER_GBSYNCD_AGERA2)_RUN_OPT += --privileged -t |
| 35 | +$(DOCKER_GBSYNCD_AGERA2)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf |
| 36 | +$(DOCKER_GBSYNCD_AGERA2)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro |
| 37 | +$(DOCKER_GBSYNCD_AGERA2)_RUN_OPT += -v /host/warmboot:/var/warmboot |
| 38 | + |
| 39 | +# Add runtime package to online debs |
| 40 | +SONIC_ONLINE_DEBS += $(LIBSAI_AGERA2) |
| 41 | + |
| 42 | +$(DOCKER_GBSYNCD_AGERA2)_VERSION = 1.0.0 |
| 43 | +$(DOCKER_GBSYNCD_AGERA2)_PACKAGE_NAME = gbsyncd-agera2 |
| 44 | +$(DOCKER_GBSYNCD_AGERA2)_PATH = $(PLATFORM_PATH)/../components/docker-gbsyncd-agera2 |
| 45 | +$(DOCKER_GBSYNCD_AGERA2)_DEPENDS += $(SYNCD) $(LIBSAI_AGERA2) |
| 46 | + |
| 47 | +endif |
0 commit comments