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

Anders Darander anders at chargestorm.se
Tue Jun 14 11:17:58 UTC 2011


On Tue, Jun 14, 2011 at 12:35, Phil Blundell <pb at pbcl.net> wrote:
> 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.

That should be correct...
I thought about something like that, but for some (unknown) reasons
throw that idea away. I believe that I for some reason got hung on the
TMPDIr=`....` syntax.

Using eval instead, all(?) problems should be gone.

Updating my todo-list. Hopefully I'll get some time soon to implement
this, as it looks pretty trivial to add this support (at least after a
quick glance at the bitbake source).

Regards,
Anders




More information about the Openembedded-core mailing list