From bd773f597384b701ff90edf9bc2ee71882f16967 Mon Sep 17 00:00:00 2001 From: jingwenxie Date: Fri, 21 Jan 2022 11:54:48 +0800 Subject: [PATCH] [broadcom-dnx] Fix dnx image and dnx platform mismatch issue #9786 Why I did it sonic-broadcom-dnx.bin should be able to installed on DNX supported platform, whereas it doesn't. How I did it Changed CONFIGUTED_PLATFORM to TARGET_MACHINE to distinguish broadcom and broadcom-dnx How to verify it tar sonic-broadcom-dnx.bin and verify its platforms_asic contians dnx platforms Also verify on image with other asic, no regression. --- build_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_image.sh b/build_image.sh index 10c19addc2..871ba839a9 100755 --- a/build_image.sh +++ b/build_image.sh @@ -97,7 +97,7 @@ generate_device_list() for d in `find -L ./device -maxdepth 2 -mindepth 2 -type d`; do if [ -f $d/platform_asic ]; then - if [ "$CONFIGURED_PLATFORM" = "generic" ] || grep -Fxq "$CONFIGURED_PLATFORM" $d/platform_asic; then + if [ "$TARGET_MACHINE" = "generic" ] || grep -Fxq "$TARGET_MACHINE" $d/platform_asic; then echo "${d##*/}" >> "$platforms_asic"; fi; fi;