<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 24, 2012 at 5:12 AM, Robert P. J. Day <span dir="ltr"><<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>></span> wrote:<br>
<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">> I personally think that something like it would be useful in bitbake proper.<br>
><br>
> FYI, bitbake-env now supports optionally showing function dependencies:<br>
><br>
> $ bitbake-env -d TARGET_PREFIX<br>
> def csl_target_sys(d):<br>
> toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN', True)<br>
><br>
> for triplet in d.getVar('CSL_TARGET_SYS', True).split():<br>
> gcc = os.path.join(toolchain_path, 'bin', triplet + '-gcc')<br>
> if os.path.exists(gcc):<br>
> return triplet + '-'<br>
> return 'powerpc-mel-linux-gnuspe-'<br>
><br>
> # TARGET_PREFIX="${@csl_target_sys(d)}"<br>
> TARGET_PREFIX="powerpc-linux-gnu-"<br>
><br>
> $ bitbake-env -d do_compile<br>
> base_do_compile () {<br>
> if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then<br>
> oe_runmake || die "make failed"<br>
> else<br>
> bbnote "nothing to compile"<br>
> fi<br>
> }<br>
><br>
> do_compile () {<br>
> base_do_compile<br>
> }<br>
<br>
</div> whoa, where *is* this? is it on tap to be added to bitbake/bin,<br>
since i think that would be a delightful idea.<br></blockquote><div><br></div><div>The latest code at <a href="https://gist.github.com/4133101">https://gist.github.com/4133101</a> has it. The new readme there describes the usage and behavioral differences relative to bitbake -e.</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">
just to recap, my interest in this sort of thing is not so much for<br>
debugging as for instruction -- when i last taught an intro class<br>
in OE/yocto, i made extensive use of the "bitbake-layers" utility when<br>
explaining and defining layers, and the class loved it, that they<br>
could see the results of adding a new layer.<br></blockquote><div><br></div><div>Ah! Interesting. I hadn't considered the training aspects of that sort of utility, as I normally just use them in debugging. I'll have to keep that in mind in the future.</div>
</div>-- <br>Christopher Larson<br>
</div>