[OE-core] [PATCH] scripts/oe-init-bashrc: add more user-friendly oe-setup utility

Alexander Kanavin alex.kanavin at gmail.com
Mon May 28 19:12:11 UTC 2018


2018-05-28 21:41 GMT+03:00 Jens Rehsack <rehsack at gmail.com>:
> When I log into my build machine, I just do
>
> $ oe_builddir use ~/gpw-community-bsp/gpw-yocto-platform/
>
> and I'm in the right location and have all environment settings prepared to start a bitbake immediately.

oe-init-build-env does the same thing, how is this better?

> $ oe_builddir help
> oe_builddir <command> [argument]
> Available commands:
>     use         use specified build-dir, setup when local.conf and/or bblayers.conf are missing
>     setup       create default builddir
>     avail       list possible build-dir's
>     layers      list layers used in BSP
>     repos       list repositories used in BSP
>     prune       prune old builds
>     off         remove all settings from oe from shell environment
>
> Tells you, what could be expected (very short).
>
> It's all plain shell - so everyone can adopt it easily to local requirements. Further, it supports setting flags and tools within ''oe_builddir use''.

I'd say you should look at existing tools, specifically
oe-init-build-env and/or oe-setup-builddir, and add any desired
functionality to them.

Alex



More information about the Openembedded-core mailing list