[bitbake-devel] [PATCH] toaster: Point to meta/conf for default toasterconf.json

Brian Avery avery.brian at gmail.com
Mon Oct 26 16:05:55 UTC 2015


True,

but then builds for poky would fail :(

How about something like (posted from gmail so just for discussion not
to be used!!):

if [ "$TOASTER_CONF" = "" ]; then

-    TOASTER_CONF="$(dirname $TOASTER)/../../meta-yocto/conf/toasterconf.json"

+    if [ -e "$(dirname
$TOASTER)/../../meta-yocto/conf/toasterconf.json" ] ; then

+       TOASTER_CONF="$(dirname
$TOASTER)/../../meta-yocto/conf/toasterconf.json"

+    elif [ -e "$(dirname $TOASTER)/../../meta/conf/toasterconf.json" ] ; then

+       TOASTER_CONF="$(dirname $TOASTER)/../../meta/conf/toasterconf.json"

+    fi

     export TOASTER_CONF=$(python -c "import os; print
os.path.realpath('$TOASTER_CONF')")

 fi

-b

On Sat, Oct 24, 2015 at 2:56 PM, Khem Raj <raj.khem at gmail.com> wrote:
> meta-yocto may not exist in nodistro env
>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>  bin/toaster | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bin/toaster b/bin/toaster
> index 2c3432c..c1a01f0 100755
> --- a/bin/toaster
> +++ b/bin/toaster
> @@ -196,7 +196,7 @@ fi
>  # in the local layers that currently prevent using an arbitrary
>  # toasterconf.json
>  if [ "$TOASTER_CONF" = "" ]; then
> -    TOASTER_CONF="$(dirname $TOASTER)/../../meta-yocto/conf/toasterconf.json"
> +    TOASTER_CONF="$(dirname $TOASTER)/../../meta/conf/toasterconf.json"
>      export TOASTER_CONF=$(python -c "import os; print os.path.realpath('$TOASTER_CONF')")
>  fi
>  if [ ! -f $TOASTER_CONF ]; then
> --
> 2.6.2
>
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel



More information about the bitbake-devel mailing list