[OE-core] [PATCH] runqemu: take TMPDIR from bitbake

Phil Blundell pb at pbcl.net
Tue Jun 14 10:35:49 UTC 2011


On Tue, 2011-06-14 at 12:33 +0200, Anders Darander wrote:
> Sure, if we need multiple variables, we'll save time by only invoking
> bitbake (and parse all configs, etc) once. On the other hand, have we
> then gained anything, as compared to 'bitbake -e'? Sure, we'll reduce
> the output, by only outputing the requested variables... But in the
> original case: TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 |
> cut -d '"' -f2`
> the only change we can do is to substitute 'bitbake -e' with 'bitbake
> -V TMDPDIR', which wouldn't be any improvement.

Well, that's not quite true.  If "bitbake -V" outputted the full
assignment then you could just write:

eval `bitbake -V TMPDIR`

which would be a considerable improvement.

p.






More information about the Openembedded-core mailing list