diff --git a/sdk/build-github.sh b/sdk/build-github.sh index 2da93e40b..6566d0912 100755 --- a/sdk/build-github.sh +++ b/sdk/build-github.sh @@ -117,7 +117,9 @@ swu_recipe_name() { # Per-platform data while read _pl _tgt; do [ -n "${DY_TARGET}" ] && _tgt="${DY_TARGET}" || true - eval "${_pl}_tgt=\"${_tgt}\"" + # Dashes are not allowed in variables so let's substitute them on + # the fly with underscores. + eval "${_pl//-/_}_tgt=\"${_tgt//,/ }\"" done<<-_EOF_ ccimx8x-sbc-express dey-image-qt ccimx6qpsbc dey-image-qt @@ -159,7 +161,9 @@ fi # Create projects and build rm -rf ${YOCTO_IMGS_DIR} ${YOCTO_PROJ_DIR} for platform in ${DY_PLATFORMS}; do - eval platform_targets="\${${platform}_tgt}" + # The variables _var|tgt got their dashes converted to + # underscores, so we must convert also the ones in ${platform}. + eval platform_targets=\"\${${platform//-/_}_tgt}\" _this_prj_dir="${YOCTO_PROJ_DIR}/${platform}" _this_img_dir="${YOCTO_IMGS_DIR}/${platform}" mkdir -p ${_this_img_dir} ${_this_prj_dir}