* Custom tasks not running when dependency changes version
@ 2013-04-28 1:14 Daniel Lazzari
2013-05-03 15:26 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lazzari @ 2013-04-28 1:14 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
I've got a weird issue that I just can't seem to figure out and need some help on. In our custom layer we have a bbclass that has 2 custom tasks, like so:
addtask complete_metadata after do_package before do_package_write
addtask create_other_package after do_package_write before do_build
Now this is inherited by a recipe B which depends on recipe A. If I build a rootfs image, then change the version (PV) on recipe A, then build the rootfs image again, recipe A rebuilds, then recipe B rebuilds, but it rebuilds without running my custom tasks. There's probably some task flag that I need to set to make this work, but I can't figure out what it is. Any help is appreciated, as always.
BTW, I'm all the way back on the denzil branch in case that matters.
Thanks,
Daniel Lazzari Jr.
Firmware Engineer
dlazzari@leapfrog.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Custom tasks not running when dependency changes version
2013-04-28 1:14 Custom tasks not running when dependency changes version Daniel Lazzari
@ 2013-05-03 15:26 ` Richard Purdie
2013-05-03 22:57 ` Daniel Lazzari
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-05-03 15:26 UTC (permalink / raw)
To: Daniel Lazzari; +Cc: openembedded-core@lists.openembedded.org
On Sun, 2013-04-28 at 01:14 +0000, Daniel Lazzari wrote:
> I've got a weird issue that I just can't seem to figure out and need some help on. In our custom layer we have a bbclass that has 2 custom tasks, like so:
>
> addtask complete_metadata after do_package before do_package_write
> addtask create_other_package after do_package_write before do_build
>
> Now this is inherited by a recipe B which depends on recipe A. If I build a rootfs image, then change the version (PV) on recipe A, then build the rootfs image again, recipe A rebuilds, then recipe B rebuilds, but it rebuilds without running my custom tasks. There's probably some task flag that I need to set to make this work, but I can't figure out what it is. Any help is appreciated, as always.
>
> BTW, I'm all the way back on the denzil branch in case that matters.
We have recently found a cache issue in bitbake with regard to addtask
handling. The fix is now in master:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6db202532122b213ae6cfce9a49ac9fad2db20f5
You can workaround this by removing tmp/cache/ to ensure bitbake
correctly reparses things when it should. It may be the problem you're
seeing, it may not but its worth a try...
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Custom tasks not running when dependency changes version
2013-05-03 15:26 ` Richard Purdie
@ 2013-05-03 22:57 ` Daniel Lazzari
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Lazzari @ 2013-05-03 22:57 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> Sent: Friday, May 03, 2013 8:26 AM
> To: Daniel Lazzari
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] Custom tasks not running when dependency changes
> version
>
> On Sun, 2013-04-28 at 01:14 +0000, Daniel Lazzari wrote:
> > I've got a weird issue that I just can't seem to figure out and need some
> help on. In our custom layer we have a bbclass that has 2 custom tasks, like
> so:
> >
> > addtask complete_metadata after do_package before do_package_write
> > addtask create_other_package after do_package_write before do_build
> >
> > Now this is inherited by a recipe B which depends on recipe A. If I build a
> rootfs image, then change the version (PV) on recipe A, then build the rootfs
> image again, recipe A rebuilds, then recipe B rebuilds, but it rebuilds without
> running my custom tasks. There's probably some task flag that I need to set
> to make this work, but I can't figure out what it is. Any help is appreciated, as
> always.
> >
> > BTW, I'm all the way back on the denzil branch in case that matters.
>
> We have recently found a cache issue in bitbake with regard to addtask
> handling. The fix is now in master:
>
> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6db202532122b213ae6
> cfce9a49ac9fad2db20f5
>
> You can workaround this by removing tmp/cache/ to ensure bitbake
> correctly reparses things when it should. It may be the problem you're
> seeing, it may not but its worth a try...
>
> Cheers,
>
> Richard
This worked perfectly. Thank you so much!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-03 23:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-28 1:14 Custom tasks not running when dependency changes version Daniel Lazzari
2013-05-03 15:26 ` Richard Purdie
2013-05-03 22:57 ` Daniel Lazzari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox