[meta-freescale] [fsl-community-bsp-base][PATCH] setup-environment: return if no conf/local.conf generated

Daiane Angolini daiane.list at gmail.com
Fri Jul 11 06:12:09 PDT 2014


On Wed, Jul 9, 2014 at 12:38 AM,  <ting.liu at freescale.com> wrote:
> From: Ting Liu <ting.liu at freescale.com>
>
> there will be no conf/local.conf generated if python version check
> in poky/scripts/oe-buildenv-internal failed. In this case, no need
> to go further.

This patch is OK to me. I don´t see any problem.

ACK

Daiane
>
> Signed-off-by: Ting Liu <ting.liu at freescale.com>
> ---
>  setup-environment | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/setup-environment b/setup-environment
> index 5931e2b..a19aa13 100755
> --- a/setup-environment
> +++ b/setup-environment
> @@ -132,6 +132,11 @@ cd $OEROOT
>
>  . ./oe-init-build-env $CWD/$1 > /dev/null
>
> +# if conf/local.conf not generated, no need to go further
> +if [ ! -e conf/local.conf ]; then
> +    clean_up && return 1
> +fi
> +
>  # Clean up PATH, because if it includes tokens to current directories somehow,
>  # wrong binaries can be used instead of the expected ones during task execution
>  export PATH="`echo $PATH | sed 's/\(:.\|:\)*:/:/g;s/^.\?://;s/:.\?$//'`"
> --
> 1.8.3.2
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale


More information about the meta-freescale mailing list