Skip to contentSkip to conversation

doc: mention that addtask handles multiple dependencies

PATCH In review Robert P. J. Day 2 participants 2 messages Mar 22, 2021

lore
Share & tools
lore
#0 lore raw

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.

---

doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +11 -0
index 7ea68ade..5ecda744 100644
@@ -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
========================================================================
Reviewed-by on v1 1/1
#1 lore raw
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.

---

doc/bitbake-user-manual/bitbake-user-manual-metadata.rst +4 -0
index 7ea68ade..5ecda744 100644
@@ -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
 ---------------
 

Thanks!

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com