[OE-core] Custom tasks not running when dependency changes version

Richard Purdie richard.purdie at linuxfoundation.org
Fri May 3 15:26:00 UTC 2013


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





More information about the Openembedded-core mailing list