doc: mention that addtask handles multiple dependencies
PATCH 1/1 doc: mention that addtask handles multiple dependencies
Add a note explaining that "addtask" can accept multiple dependencies, just in case someone runs across such an example and is confused.
Signed-off-by Robert P. J. Day <[email protected]>
---
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +11 -0
@@ -1296,6 +1296,17 @@ For more information on task dependencies, see the See the ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:variable flags`" section for information on variable flags you can use with tasks. +.. note:: + + While it's infrequent, it's possible to define multiple tasks as + dependencies when calling ``addtask``. For example, here's a snippet + from the OpenEmbedded class file ``package_tar.bbclass``:: + + addtask package_write_tar before do_build after do_packagedata do_package + + Note how the ``package_write_tar`` task has to wait until both of + ``do_packagedata`` and ``do_package`` complete. + Deleting a Task ---------------
Signature · 6 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 19 lines · Robert P. J. Day
Add a note explaining that "addtask" can accept multiple dependencies, just in case someone runs across such an example and is confused.
Signed-off-by Robert P. J. Day <[email protected]>---
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +4
-0@@ -1296,6 +1296,17 @@ For more information on task dependencies, see the See the ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:variable flags`" section for information on variable flags you can use with tasks. +.. note:: + + While it's infrequent, it's possible to define multiple tasks as + dependencies when calling ``addtask``. For example, here's a snippet
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst For more information on task dependencies, see the · line 1312
Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +7
-0+ from the OpenEmbedded class file ``package_tar.bbclass``:: + + addtask package_write_tar before do_build after do_packagedata do_package + + Note how the ``package_write_tar`` task has to wait until both of + ``do_packagedata`` and ``do_package`` complete. + Deleting a Task ---------------
Reviewed-by Michael Opdenacker <[email protected]>
Thanks!
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com