<div dir="ltr">On Mon, Apr 22, 2013 at 12:57 PM, Robert P. J. Day <<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>> wrote:<br>> On Mon, 22 Apr 2013, Trevor Woerner wrote:<br>>> On Mon, Apr 22, 2013 at 10:16 AM, Richard Purdie <<a href="mailto:rpurdie@rpsys.net">rpurdie@rpsys.net</a>> wrote:<br>
>> > This would then lead into the second proposal which is to add better<br>>> > support for new commands.<br>>><br>>> It would be nice if there was a way to zero-in on an existing<br>>> environment variable. For example:<br>
>><br>>> $ bitbake -e <image><br>>><br>>> produces a lot of information which I then have to parse in order to<br>>> figure out how a given environment variable is being set. It would be<br>
>> nice if I could simply:<br>>><br>>> $ bitbake -e <image> <variable><br>>><br>>> and just get the pertinent parts.<br>><br>> i think bitbake-env would do this for you.<br>
><br>> rday<br><br>If I use bitbake-env I just get the current value:<br><br> $ bitbake-env OE_TERMINAL<br> OE_TERMINAL="screen"<br><br>but if I use "bitbake -e" I get a better pictures of why that variable is what it is<div>
(which I've found very useful):<br><br> $ bitbake -e | less<br> [...snip...]<br> # $OE_TERMINAL [4 operations]<br> # set /home/trevor/devel/yocto/builds/fullbuild/conf/local.conf:23<br> # "screen"<br>
# set? /home/trevor/devel/yocto/git/poky/meta/classes/terminal.bbclass:1<br> # "auto"<br> # set /home/trevor/devel/yocto/git/poky/meta/classes/terminal.bbclass:2<br> # [type] "choice"<br>
# set /home/trevor/devel/yocto/git/poky/meta/classes/terminal.bbclass:5<br> # [choices] "auto none ${@" ".join(<a href="http://o.name">o.name</a> for o in oe.terminal.prioritized())}"<br>
# computed:<br> # "screen"<br> OE_TERMINAL="screen"<br> [...snip...]</div></div>