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

Yury Bushmelev jay4mail at gmail.com
Tue Jun 14 09:25:06 UTC 2011


2011/6/14 Anders Darander <anders at chargestorm.se>:
> On Tue, Jun 14, 2011 at 00:22, Yury Bushmelev <jay4mail at gmail.com> wrote:
>> 2011/6/13 Anders Darander <anders at chargestorm.se>:
>>> +        # We have bitbake in PATH, get TMPDIR from bitbake
>>> +        TMPDIR=`bitbake -e | grep TMPDIR=\" | cut -d '=' -f2 | cut -d '"' -f2`
>>
>> This change inspired me just another crazy idea.
>> Getting some variable from bitbake is frequently used task. May be our
>> bitbake people will add some special mode to bitbake for this? E.b.
>> like bsd make have (make -V KERNCONF)[1].
>>
>> I would suggest syntax like 'bitbake -V TMPDIR'
>
> That would definitely simplify a few lines in a number of scripts.
>
> I'll put it on my todo-list, although it is getting rather long now
> (with very little time allocated for working on that list)...

Note that user may request more than one variable with single bitbake
invocation. E.g.:

bitbake -V TMPDIR -V DEPLOY_DIR

In this case better to prefix variable value with name, like set does:

TMPDIR=/path/to/tmpdir
DEPLOY_DIR=/path/to/deploydir

-- 
Yury Bushmelev




More information about the Openembedded-core mailing list