This commit allows us to define also alias names for MACHINE.
TEMPLATECONF moved down for this.
Change-Id: Ibec9882ac5a7c3bf734ead8a05b452bb655bbeeb
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-# set template conf for each <board/device>
-if [ -z "$TEMPLATECONF" ]; then
- TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
-fi
case "$MACHINE" in
"porter")
case "$MACHINE" in
"porter")
+ "minnowboard")
+ # alias for minnowboardmax
+ MACHINE="intel-corei7-64"
+ ;;
"qemux86")
;;
"qemux86-64")
"qemux86")
;;
"qemux86-64")
+# set template conf for each <board/device>
+if [ -z "$TEMPLATECONF" ]; then
+ if [ -d "$PWD/meta-agl-demo/templates/$MACHINE/conf" ]; then
+ TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
+ fi
+fi
+
echo "envsetup: Set '$1 as MACHINE."
export MACHINE
echo "envsetup: Set '$1 as MACHINE."
export MACHINE
if [ ! -d "$TEMPLATECONF" ]; then
# Allow to use templates at meta-agl-demo/conf
TEMPLATECONF="$PWD/meta-agl-demo/conf"
if [ ! -d "$TEMPLATECONF" ]; then
# Allow to use templates at meta-agl-demo/conf
TEMPLATECONF="$PWD/meta-agl-demo/conf"