X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fenvsetup.sh;h=c445a80d00df0f657269a83744649aea9fddb492;hb=830bc3ca3237188a13c7366334ee9d0e7e4797cf;hp=89713d968351e07fae4619eeb26731a07f2073c9;hpb=8cd9f905fe9a7ba21d792dbb3961d9997c2dd3b7;p=AGL%2Fmeta-agl.git diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 89713d968..c445a80d0 100644 --- a/scripts/envsetup.sh +++ b/scripts/envsetup.sh @@ -6,11 +6,7 @@ if [ -z $1 ]; then fi MACHINE="$1" - -# set template conf for each -if [ -z "$TEMPLATECONF" ]; then - TEMPLATECONF="$PWD/meta-agl-demo/templates/$MACHINE/conf" -fi +echo "MACHINE=$MACHINE" case "$MACHINE" in "porter") @@ -30,21 +26,58 @@ case "$MACHINE" in TEMPLATECONF="$PWD/meta-renesas/meta-rcar-gen2/conf" fi ;; + "porter-nogfx") + MACHINE="porter" + if [ ! -d "$TEMPLATECONF" ]; then + # set template conf for R-Car2 M2 Porter board + TEMPLATECONF="$PWD/meta-renesas/meta-rcar-gen2/conf" + fi + ;; + "raspberrypi3") + ;; + "raspberrypi2") + ;; "intel-corei7-64") ;; + "minnowboard") + # alias for minnowboardmax + MACHINE="intel-corei7-64" + ;; "qemux86") ;; "qemux86-64") ;; + "dra7xx-evm") + ;; + "vayu") + # nickname for dra7xx-evm + MACHINE="dra7xx-evm" + ;; + "wandboard") + ;; *) # nothing to do here echo "WARN: '$MACHINE' is not tested by AGL Distro" ;; esac -echo "envsetup: Set '$1 as MACHINE." +echo "TEMPALTECONF=$TEMPLATECONF" +# set template conf for each +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." export MACHINE +# fallback if [ ! -d "$TEMPLATECONF" ]; then # Allow to use templates at meta-agl-demo/conf TEMPLATECONF="$PWD/meta-agl-demo/conf" @@ -75,3 +108,4 @@ fi export BB_ENV_EXTRAWHITE +unset TEMPLATECONF