Skip to contentSkip to conversation

Bitbake wrapper

DISCUSSION Esben Haabendal 1 participant 1 message Nov 22, 2007

lore
Share & tools
lore
#0 lore raw

Hi

For what it is worth, the attached bash script when placed somewhere in PATH before bitbake make bitbake into a location aware tool if not setup in any other way.

So if/when you want to have it behave as it does now, just remember to setup PATH, BBPATH and so on and go on with your business (as usual).

But if you don't setup variables in advance (for whatever reason), just go into your build directory, or any subdir of that and do your bitbake commands as before. You just have to place a file called .bbenv in the top builddir that when sourced into your shell (bash) setup BBPATH, PYTHONPATH, PATH and any additional variables needed by your build.

Example .bbenv:

export OEDIR="/stuff"
export BBPATH="${OEDIR}/local:${OEDIR}/build/foo:${OEDIR}/openembedded" export PYTHONPATH="${OEDIR}/bitbake/libbitbake"
export PATH="${OEDIR}/bitbake/bin:${PATH}"

AFAICS, it only adds functionality without removing any capabilities for "power-users".

/Esben

Signature · 3 lines
Esben Haabendal
Embedded Software Consultant
Doré Development ApS