From 2c22ab6735cbf2d690ed4e004aefd177b450f2a5 Mon Sep 17 00:00:00 2001 From: xumia <59720581+xumia@users.noreply.github.com> Date: Thu, 24 Jun 2021 01:19:42 +0800 Subject: [PATCH] [ci]: build rpc image for mellanox (#7905) (#7946) Rename the sync_rpc_image to docker_syncd_rpc_image Add a new parameter syncd_rpc_image to build sonic-mellanox-rpc.bin --- .azure-pipelines/azure-pipelines-build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-build.yml b/.azure-pipelines/azure-pipelines-build.yml index d482934f57..3a901be6a5 100644 --- a/.azure-pipelines/azure-pipelines-build.yml +++ b/.azure-pipelines/azure-pipelines-build.yml @@ -32,7 +32,8 @@ jobs: dbg_image: no swi_image: no raw_image: no - sync_rpc_image: no + docker_syncd_rpc_image: no + syncd_rpc_image: no platform_rpc: no ${{ if ne(parameters.jobGroups, '') }}: jobGroups: ${{ parameters.jobGroups }} @@ -49,12 +50,12 @@ jobs: dbg_image: yes swi_image: yes raw_image: yes - sync_rpc_image: yes + docker_syncd_rpc_image: yes platform_rpc: brcm - name: centec variables: dbg_image: yes - sync_rpc_image: yes + docker_syncd_rpc_image: yes platform_rpc: centec - name: centec-arm64 pool: sonicbld_8c @@ -75,12 +76,13 @@ jobs: - name: mellanox variables: dbg_image: yes - sync_rpc_image: yes + docker_syncd_rpc_image: yes + syncd_rpc_image: yes platform_rpc: mlnx - name: nephos variables: dbg_image: yes - sync_rpc_image: yes + docker_syncd_rpc_image: yes platform_rpc: nephos buildSteps: - bash: | @@ -100,9 +102,13 @@ jobs: if [ $(raw_image) == yes ]; then make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw fi - if [ $(sync_rpc_image) == yes ]; then + if [ $(docker_syncd_rpc_image) == yes ]; then make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-rpc.gz fi + if [ $(syncd_rpc_image) == yes ]; then + make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/sonic-$(GROUP_NAME).bin + mv target/sonic-mellanox.bin target/sonic-$(GROUP_NAME)-rpc.bin + fi make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).bin fi displayName: "Build sonic image"