+echo "TEMPALTECONF=$TEMPLATECONF"
+# set template conf for each <board/device>
+if [ -z "$TEMPLATECONF" ]; then
+ # lookup meta-agl-demo first
+ if [ -d "$PWD/meta-agl-demo/templates/$MACHINE/conf" ]; then
+ TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf"
+ # lookup meta-agl 2nd
+ elif [ -d "$PWD/meta-agl/templates/$MACHINE/conf" ]; then
+ TEMPLATECONF="$PWD/meta-agl/templates/$MACHINE/conf"
+ fi
+fi
+echo "TEMPLATECONF=$TEMPLATECONF"
+
+echo "envsetup: Set '$1' as MACHINE."