<div class="gmail_extra">On Thu, Nov 22, 2012 at 1:43 PM, Robert P. J. Day <span dir="ltr">&lt;<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>&gt;</span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Thu, 22 Nov 2012, Chris Larson wrote:<br>


<br>
</div><div class="im">&gt; I would personally like to see something like:<br>
&gt;<br>
&gt; bitbake -E MACHINE,DISTRO,TMPDIR<br>
&gt;<br>
&gt; Rather than having to define additional &#39;grouping&#39; metadata.<br>
&gt;<br>
&gt; For now, something like this might be convenient:<br>
&gt;<br>
&gt; $ cat ~/bin/bitbake-env<br>
&gt; #!/bin/sh<br>
&gt; #<br>
&gt; # bitbake-env VARIABLE [VARIBLE...]<br>
&gt; #<br>
&gt; # Filter out particular variables from bitbake -e, including the commented out<br>
&gt; # unexpanded form, and both exported and unexported.<br>
&gt;<br>
&gt; args_pattern () {<br>
&gt;     for arg; do<br>
&gt;         printf &quot;$arg|&quot;<br>
&gt;     done | sed &#39;s,|$,,&#39;<br>
&gt; }<br>
&gt;<br>
&gt; bitbake -e | grep -E &quot;^((export )?|(# )?)($(args_pattern &quot;$@&quot;))=&quot;<br>
<br>
</div>  ok, but there&#39;s still something i&#39;m missing.  from<br>
<a href="http://linux-yocto_3.4.bb" target="_blank">linux-yocto_3.4.bb</a>, i might want to see the final value of<br>
LINUX_VERSION, but that&#39;s not printed as part of the normal<br>
environment, so i&#39;m assuming i&#39;d need to export it first, right?<br>
because there&#39;s a lot of content i&#39;d be interested in seeing that is<br>
currently not printed by &quot;bitbake -e&quot;.</blockquote></div><br>Yeah, that quick script just ran bitbake -e, not bitbake -e &lt;provider&gt;. You could modify it easily enough to support that, though.</div><div class="gmail_extra">

<br></div><div class="gmail_extra">You could also try out <a href="https://gist.github.com/4133101">https://gist.github.com/4133101</a>. It&#39;s just a quick prototype. Drop it next to bitbake in bitbake/bin/. It fixes a couple minor annoyances with bitbake -e and it sends all the bitbake log output from stdout to stderr, so you can redirect that independently of the emitted variables and values.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Usage examples:</div><div class="gmail_extra"><br></div><div class="gmail_extra">    bitbake-env DISTRO MACHINE do_configure</div><div class="gmail_extra">    bitbake-env -r virtual/kernel FILE</div>

<div class="gmail_extra">    eval $(bitbake-env TMPDIR | grep -v &#39;^#&#39;)</div><div class="gmail_extra">-- <br>Christopher Larson<br>
</div>