[OE-core] [oe-core] Add option to oe-buildenv-internal script to change bitbake location.

Saul Wold sgw at linux.intel.com
Wed May 16 18:23:58 UTC 2012


On 05/09/2012 07:44 PM, Philip Balister wrote:
> Having bitbake inside the oe-core is annoying to some people. This commit
> adds a second option to the oe-init-build-env script.
>
> Run like this:
>
> . ./oe-init-build-env ../build ../bitbake
>
> for example. Without the second option, the old behavior is preserved.
>
> Signed-off-by: Philip Balister<philip at balister.org>
> ---
>   scripts/oe-buildenv-internal |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
> index 9de7b05..05c6cd8 100755
> --- a/scripts/oe-buildenv-internal
> +++ b/scripts/oe-buildenv-internal
> @@ -54,7 +54,11 @@ else
>   fi
>   unset BDIR
>
> -BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
> +if [ "x$2" = "x" ]; then
> +    BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
> +else
> +    BITBAKEDIR="$2"
> +fi
>
>   BITBAKEDIR=`readlink -f "$BITBAKEDIR"`
>   BUILDDIR=`readlink -f "$BUILDDIR"`

Merged into OE-Core

Thanks
	Sau!




More information about the Openembedded-core mailing list