<div class="gmail_extra">On Fri, Nov 23, 2012 at 6:26 AM, Robert P. J. Day <span dir="ltr"><<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>></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">> What variables are you not seeing? bitbake -e shows all variables<br>
> but ones which are flagged 'unexport' (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'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('EXTERNAL_TOOLCHAIN', True)</div><div class="gmail_extra"><br></div><div class="gmail_extra"> for triplet in d.getVar('CSL_TARGET_SYS', True).split():</div>
<div class="gmail_extra"> gcc = os.path.join(toolchain_path, 'bin', triplet + '-gcc')</div><div class="gmail_extra"> if os.path.exists(gcc):</div><div class="gmail_extra"> return triplet + '-'</div>
<div class="gmail_extra"> return 'powerpc-mel-linux-gnuspe-'</div><div class="gmail_extra"><br></div><div class="gmail_extra"># TARGET_PREFIX="${@csl_target_sys(d)}"</div><div class="gmail_extra">TARGET_PREFIX="powerpc-linux-gnu-"</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 "make failed"</div><div class="gmail_extra"> else</div><div class="gmail_extra"> bbnote "nothing to compile"</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>