3ad830eb49
Introduce new sonic-buildimage images for Broadcom DNX ASIC family. sonic-broadcom-dnx.bin sonic-aboot-broadcom-dnx.swi How I did it NO CHANGE to existing make commands make init; make configure PLATFORM=broadcom; make target/sonic-aboot-broadcom.swi; make target/sonic-broadcom.bin The difference now is that it will result in new broadcom images for DNX asic family as well. sonic-broadcom.bin, sonic-broadcom-dnx.bin sonic-aboot-broadcom.swi, sonic-aboot-broadcom-dnx.swi Note: This PR also adds support for Broadcom SAI 5.0 (based on 1.8 SAI ) for DNX based platform + changes in platform x86_64-arista_7280cr3_32p4 bcm config files and platform_env.conf files
41 lines
715 B
Bash
41 lines
715 B
Bash
#!/bin/bash
|
|
|
|
function help()
|
|
{
|
|
echo "Usage: $0 -n [0 to $(($NUM_ASIC-1))]" 1>&2; exit 1;
|
|
|
|
}
|
|
|
|
|
|
DEV=""
|
|
|
|
PLATFORM=`sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`
|
|
|
|
# Parse the device specific asic conf file, if it exists
|
|
|
|
ASIC_CONF=/usr/share/sonic/device/$PLATFORM/asic.conf
|
|
if [ -f "$ASIC_CONF" ]; then
|
|
source $ASIC_CONF
|
|
fi
|
|
|
|
|
|
if [[ ($NUM_ASIC -gt 1) ]]; then
|
|
OPTIND=1
|
|
|
|
while getopts ":n:h:" opt; do
|
|
case "${opt}" in
|
|
h) help
|
|
exit 0
|
|
;;
|
|
n) DEV=${OPTARG}
|
|
[ $DEV -lt $NUM_ASIC -a $DEV -ge 0 ] || help
|
|
;;
|
|
esac
|
|
done
|
|
shift "$((OPTIND-1))"
|
|
|
|
if [ -z "${DEV}" ]; then
|
|
help
|
|
fi
|
|
fi
|