mkproject: ignore meta-digi-arm dir when other layer is selected

Default value of 'MKP_CONFIGPATH' points to a config path in the
meta-digi/meta-digi-arm layer.

When mkproject.sh is called with the '-m' argument, another layer is
provided to build the project from. In this layer the conf/templates
new structure must be respected, but it is likely it does not contain a
meta-digi-arm directory on top.

Keep the 'meta-digi-arm' directory in the config path by default, but
remove it when a different layer is provided through an argument.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
This commit is contained in:
Gonzalo Ruiz 2025-10-23 12:20:27 +02:00
parent 81c09b151e
commit 7888fe3b22
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ while getopts "lp:m:" c; do
case "${c}" in
l) MKP_LIST_PLATFORMS="y";;
p) MKP_PLATFORM="${OPTARG}";;
m) MKP_CONFIGPATH="${MKP_SCRIPTPATH}/sources/${OPTARG}/meta-digi-arm/conf/templates";;
m) MKP_CONFIGPATH="${MKP_SCRIPTPATH}/sources/${OPTARG}/conf/templates";;
esac
done