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>
(cherry picked from commit 7888fe3b22)
This commit is contained in:
parent
d95abbbbe4
commit
f5786c01e8
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue