Code Review
/
AGL
/
meta-agl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Allow alias names in envsetup.sh - here for minnowboard
[AGL/meta-agl.git]
/
scripts
/
envsetup.sh
diff --git
a/scripts/envsetup.sh
b/scripts/envsetup.sh
index
4925ef7
..
0b783e9
100644
(file)
--- a/
scripts/envsetup.sh
+++ b/
scripts/envsetup.sh
@@
-7,10
+7,6
@@
fi
MACHINE="$1"
MACHINE="$1"
-# 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")
@@
-32,6
+28,10
@@
case "$MACHINE" in
;;
"intel-corei7-64")
;;
;;
"intel-corei7-64")
;;
+ "minnowboard")
+ # alias for minnowboardmax
+ MACHINE="intel-corei7-64"
+ ;;
"qemux86")
;;
"qemux86-64")
"qemux86")
;;
"qemux86-64")
@@
-44,9
+44,17
@@
case "$MACHINE" in
;;
esac
;;
esac
+# 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
+# fallback
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"