aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/envsetup.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh
index 6ca10de4d..85069543a 100644
--- a/scripts/envsetup.sh
+++ b/scripts/envsetup.sh
@@ -6,7 +6,7 @@ if [ -z $1 ]; then
fi
MACHINE="$1"
-
+echo "MACHINE=$MACHINE"
case "$MACHINE" in
"porter")
@@ -43,6 +43,12 @@ case "$MACHINE" in
;;
"qemux86-64")
;;
+ "dra7xx-evm")
+ ;;
+ "vayu")
+ # nickname for dra7xx-evm
+ MACHINE="dra7xx-evm"
+ ;;
"wandboard")
;;
*)
@@ -51,14 +57,20 @@ case "$MACHINE" in
;;
esac
+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."
+echo "envsetup: Set '$1' as MACHINE."
export MACHINE
# fallback