Skip to content

prepare-xml2dto: fix platform detection

Dmitry Petrov requested to merge xml2dto_fix_platform_detect into main

A switch case, which uses a $MACHINE variable, was copied from fng-install.sh as is. But it has turned out that this logic can't be applied to "outside" prepare-xml2dto.sh script, because the $MACHINE variable is not set yet/already when the script is executed.

To fix the problem, reworked the code to use get_platform() function, which is provided by yocto postinstallation scripts, instead.

This MR is followup of !48 (merged).

Edited by Dmitry Petrov

Merge request reports

Loading