X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fenvsetup.sh;h=b30e0a66b3d6cdab763cc62e16ec396e246c0451;hb=04b8509c8a8f77d4fe3fed8883ceda61eb69069b;hp=4925ef7e9c02aa55fed717214243422c65e882cf;hpb=4904012b7748fd096681dda66f53ec5b06438495;p=AGL%2Fmeta-agl.git diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh index 4925ef7e9..b30e0a66b 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") @@ -25,6 +21,13 @@ case "$MACHINE" in fi fi + if [ ! -d "$TEMPLATECONF" ]; then + # set template conf for R-Car2 M2 Porter board + 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" @@ -32,6 +35,10 @@ case "$MACHINE" in ;; "intel-corei7-64") ;; + "minnowboard") + # alias for minnowboardmax + MACHINE="intel-corei7-64" + ;; "qemux86") ;; "qemux86-64") @@ -44,9 +51,17 @@ case "$MACHINE" in ;; 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"