2011/6/14 Anders Darander <and...@chargestorm.se>: > On Tue, Jun 14, 2011 at 00:22, Yury Bushmelev <jay4m...@gmail.com> wrote: >> 2011/6/13 Anders Darander <and...@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 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core