bitbake: runqueue/build: Add recideptask flag
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jun 2013 13:03:39 +0000 (14:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Jun 2013 12:10:47 +0000 (13:10 +0100)
commitacf3c518e2a129d24d761fce79870ca7f31c972a
treea5f4d5aaf6f24611f610b2da25b9df748b020e10
parentc78f3f3483c2390d739109a2541857fc0b3f625d
bitbake: runqueue/build: Add recideptask flag

Currently, tasks like fetchall are slightly broken since if a recipe
has specific [depends] which occur after do_fetch and add items not listed
in DEPENDS and RDEPENDS, they are not caught by recrdeptask. We've gone
around in circles on this issue (e.g
http://git.yoctoproject.org/cgit.cgi/poky/commit/bitbake/lib/bb/runqueue.py?id=5fa6036d49ed7befe6ad50ec95c61a50aec48195
) and in many cases the behaviour of recrdepends is correct but tasks like
fetchall need the other behaviour.

To address this we add a recideptask flag which can be used in conjuction
with the recrdeptask flag to specify which task to to the inspection upon.
This means entries like do_rootfs[depends] which have do_fetch tasks are
caught and run.

I'm not 100% happy with needing another flag but I don't see any rational
way to get the correct behaviour in all cases without it.

[YOCTO #4597]

(Bitbake rev: f8c9b292b02ce2c28741b74901205f5e5807ca87)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py
bitbake/lib/bb/runqueue.py