[poky] Debugging overrides

Chris Larson clarson at kergoth.com
Thu May 5 09:37:57 PDT 2011


On Thu, May 5, 2011 at 9:31 AM, Gary Thomas <gary at mlbassoc.com> wrote:
>> My .bbappend file (identical in both trees) looks like this:
>>
>>
>> -----------------------------------------------------------------------------------
>> THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
>> FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}-${PV}"], d)}:"
>> PACKAGE_ARCH = "${MACHINE_ARCH}"
>>
>> -----------------------------------------------------------------------------------
>>
>> I've traced through this with -DDD and on one target, I can see the
>> fetcher finding the files in my layer. On a different target, it only
>> finds the files in the main meta/recipes-core/netbase tree
>>
>> Any suggestions on where I look to understand what's going on?
>
> 'strace' is my friend :-)  It turns out that I had some layering
> problems which caused the wrong packages/netbase tree to be searched.
> I ran strace on 'bitbake netbase' and was able to see the erroneous
> file/path searches which pointed out my problem.

Okay, what sort of layer tooling would have helped you identify this
problem without strace? :)
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



More information about the poky mailing list