Rename the sync_rpc_image to docker_syncd_rpc_image Add a new parameter syncd_rpc_image to build sonic-mellanox-rpc.bin
This commit is contained in:
parent
78f2b8c0e5
commit
2c22ab6735
@ -32,7 +32,8 @@ jobs:
|
|||||||
dbg_image: no
|
dbg_image: no
|
||||||
swi_image: no
|
swi_image: no
|
||||||
raw_image: no
|
raw_image: no
|
||||||
sync_rpc_image: no
|
docker_syncd_rpc_image: no
|
||||||
|
syncd_rpc_image: no
|
||||||
platform_rpc: no
|
platform_rpc: no
|
||||||
${{ if ne(parameters.jobGroups, '') }}:
|
${{ if ne(parameters.jobGroups, '') }}:
|
||||||
jobGroups: ${{ parameters.jobGroups }}
|
jobGroups: ${{ parameters.jobGroups }}
|
||||||
@ -49,12 +50,12 @@ jobs:
|
|||||||
dbg_image: yes
|
dbg_image: yes
|
||||||
swi_image: yes
|
swi_image: yes
|
||||||
raw_image: yes
|
raw_image: yes
|
||||||
sync_rpc_image: yes
|
docker_syncd_rpc_image: yes
|
||||||
platform_rpc: brcm
|
platform_rpc: brcm
|
||||||
- name: centec
|
- name: centec
|
||||||
variables:
|
variables:
|
||||||
dbg_image: yes
|
dbg_image: yes
|
||||||
sync_rpc_image: yes
|
docker_syncd_rpc_image: yes
|
||||||
platform_rpc: centec
|
platform_rpc: centec
|
||||||
- name: centec-arm64
|
- name: centec-arm64
|
||||||
pool: sonicbld_8c
|
pool: sonicbld_8c
|
||||||
@ -75,12 +76,13 @@ jobs:
|
|||||||
- name: mellanox
|
- name: mellanox
|
||||||
variables:
|
variables:
|
||||||
dbg_image: yes
|
dbg_image: yes
|
||||||
sync_rpc_image: yes
|
docker_syncd_rpc_image: yes
|
||||||
|
syncd_rpc_image: yes
|
||||||
platform_rpc: mlnx
|
platform_rpc: mlnx
|
||||||
- name: nephos
|
- name: nephos
|
||||||
variables:
|
variables:
|
||||||
dbg_image: yes
|
dbg_image: yes
|
||||||
sync_rpc_image: yes
|
docker_syncd_rpc_image: yes
|
||||||
platform_rpc: nephos
|
platform_rpc: nephos
|
||||||
buildSteps:
|
buildSteps:
|
||||||
- bash: |
|
- bash: |
|
||||||
@ -100,9 +102,13 @@ jobs:
|
|||||||
if [ $(raw_image) == yes ]; then
|
if [ $(raw_image) == yes ]; then
|
||||||
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw
|
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw
|
||||||
fi
|
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
|
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-rpc.gz
|
||||||
fi
|
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
|
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).bin
|
||||||
fi
|
fi
|
||||||
displayName: "Build sonic image"
|
displayName: "Build sonic image"
|
||||||
|
Loading…
Reference in New Issue
Block a user