[poky] Debugging overrides
Gary Thomas
gary at mlbassoc.com
Thu May 5 09:31:18 PDT 2011
On 05/04/2011 09:21 AM, Gary Thomas wrote:
> I'm having trouble getting some overrides to work and would like
> some ideas how to debug/troubleshoot.
>
> I have this [layered] setup
> meta-targetA/
> packages/
> netbase/
> netbase_4.45.bbappend
> netbase-4.45/
> targetA/
> interfaces
> Similarly for targetB.
>
> 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.
All is well now.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
More information about the poky
mailing list