* Debugging overrides
@ 2011-05-04 15:21 Gary Thomas
2011-05-05 16:31 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-05-04 15:21 UTC (permalink / raw)
To: Poky Project
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?
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Debugging overrides
2011-05-04 15:21 Debugging overrides Gary Thomas
@ 2011-05-05 16:31 ` Gary Thomas
2011-05-05 16:37 ` Chris Larson
0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-05-05 16:31 UTC (permalink / raw)
To: Poky Project
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
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Debugging overrides
2011-05-05 16:31 ` Gary Thomas
@ 2011-05-05 16:37 ` Chris Larson
2011-05-05 16:48 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Chris Larson @ 2011-05-05 16:37 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky Project
On Thu, May 5, 2011 at 9:31 AM, Gary Thomas <gary@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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Debugging overrides
2011-05-05 16:37 ` Chris Larson
@ 2011-05-05 16:48 ` Gary Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2011-05-05 16:48 UTC (permalink / raw)
To: Chris Larson; +Cc: Poky Project
On 05/05/2011 10:37 AM, Chris Larson wrote:
> On Thu, May 5, 2011 at 9:31 AM, Gary Thomas<gary@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? :)
Hard to say. What I was really hoping for was basically what
strace gave me - the list of candidate files which were being considered
to satisfy the SRC_URI. Since the file I wanted was coming from my target
layer, what I needed to figure out was why it wasn't on the list.
One thing that should be pretty useful to glean is that bitbake chose
meta-targetB/packages/netbase/netbase_4.45.bbappend instead of the
one from meta-targetA. Note: this was my error, I had two layers
which contained more or less the same structure enabled. This data
was in the -DDD dump, but it wasn't obvious enough for me to catch!
Some way to know where are the pieces for some recipe come from, and
perhaps the candidates considered as well, would help a lot. I've
run into questions/confusions with layers before (bug #807) and this
error was very similar.
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-05 16:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 15:21 Debugging overrides Gary Thomas
2011-05-05 16:31 ` Gary Thomas
2011-05-05 16:37 ` Chris Larson
2011-05-05 16:48 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.