[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.
This commit is contained in:
parent
7e9a198843
commit
bd773f5973
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user