X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fenvsetup.sh;h=0b783e9a2a0fca2cf9161eb3f8836d02bc658e6a;hb=d33e1cc64a0b204bbacca793569b581024133061;hp=89713d968351e07fae4619eeb26731a07f2073c9;hpb=8cd9f905fe9a7ba21d792dbb3961d9997c2dd3b7;p=AGL%2Fmeta-agl.git diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 89713d968..0b783e9a2 100644 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh @@ -7,10 +7,6 @@ fi MACHINE="$1" -# set template conf for each -if [ -z "$TEMPLATECONF" ]; then - TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf" -fi case "$MACHINE" in "porter") @@ -32,19 +28,33 @@ case "$MACHINE" in ;; "intel-corei7-64") ;; + "minnowboard") + # alias for minnowboardmax + MACHINE="intel-corei7-64" + ;; "qemux86") ;; "qemux86-64") ;; + "wandboard") + ;; *) # nothing to do here echo "WARN: '$MACHINE' is not tested by AGL Distro" ;; esac +# set template conf for each +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 +# fallback if [ ! -d "$TEMPLATECONF" ]; then # Allow to use templates at meta-agl-demo/conf TEMPLATECONF="$PWD/meta-agl-demo/conf" @@ -60,11 +70,6 @@ else BUILD_DIR=build fi -echo "envsetup: Setup build environment for poky/oe." -echo -e - -source poky/oe-init-build-env $BUILD_DIR - if [ -n "$DL_DIR" ]; then BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR" fi @@ -75,3 +80,9 @@ fi export BB_ENV_EXTRAWHITE +echo "envsetup: Setup build environment for poky/oe." +echo -e + +source poky/oe-init-build-env $BUILD_DIR + +unset TEMPLATECONF