<div class="gmail_extra">On Fri, Nov 23, 2012 at 6:26 AM, 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">&gt; What variables are you not seeing? bitbake -e shows all variables<br>


&gt; but ones which are flagged &#39;unexport&#39; (e.g. DISTRO, MACHINE). --<br>
<br>
</div>  *sigh* ... just ignore my stupidity.  in my fatigue, i totally<br>
forgot that configuring a pandaboard required adding meta-ti on top of<br>
straight OE, and there was no yocto-related content involved, but i<br>
was still remembering all of the variables i could see when i was<br>
using yocto.<br></blockquote><div><br></div><div>Heh, oops, that&#39;d explain it :) </div><div><br></div><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">


 in any event, i like the bitbake-env script, is it worth adding some<br>
variant of that to bitbake itself?</blockquote></div><br>I personally think that something like it would be useful in bitbake proper.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">

FYI, bitbake-env now supports optionally showing function dependencies:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">$ bitbake-env -d TARGET_PREFIX</div><div class="gmail_extra">

def csl_target_sys(d):</div><div class="gmail_extra">    toolchain_path = d.getVar(&#39;EXTERNAL_TOOLCHAIN&#39;, True)</div><div class="gmail_extra"><br></div><div class="gmail_extra">    for triplet in d.getVar(&#39;CSL_TARGET_SYS&#39;, True).split():</div>

<div class="gmail_extra">        gcc = os.path.join(toolchain_path, &#39;bin&#39;, triplet + &#39;-gcc&#39;)</div><div class="gmail_extra">        if os.path.exists(gcc):</div><div class="gmail_extra">            return triplet + &#39;-&#39;</div>

<div class="gmail_extra">    return &#39;powerpc-mel-linux-gnuspe-&#39;</div><div class="gmail_extra"><br></div><div class="gmail_extra"># TARGET_PREFIX=&quot;${@csl_target_sys(d)}&quot;</div><div class="gmail_extra">TARGET_PREFIX=&quot;powerpc-linux-gnu-&quot;</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">$ bitbake-env -d do_compile</div><div class="gmail_extra">base_do_compile () {</div><div class="gmail_extra">        if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then</div>

<div class="gmail_extra">                oe_runmake || die &quot;make failed&quot;</div><div class="gmail_extra">        else</div><div class="gmail_extra">                bbnote &quot;nothing to compile&quot;</div><div class="gmail_extra">

        fi</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">do_compile () {</div><div class="gmail_extra">    base_do_compile</div><div class="gmail_extra">}</div></div></div>

-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics<br>
</div>