Skip to contentSkip to conversation

standard of "populate_sysroot" or "do_populate_sysroot"?

DISCUSSION Robert P. J. Day 1 participant 1 message Sep 27, 2021

lore
Share & tools
lore
#0 lore raw

perusing sphinx content for ref-manual/classes.rst, and noticed the
following (line 2383):

``staging.bbclass``
===================

The ``staging`` class installs files into individual recipe work directories for sysroots. The class contains the following key tasks:

- The :ref:ref-tasks-populate_sysroot task,
which is responsible for handing the files that end up in the recipe sysroots.

- The
:ref:ref-tasks-prepare_recipe_sysroot
task (a "partner" task to the ``populate_sysroot`` task), which <====
installs the files into the individual recipe work directories (i.e. :term:WORKDIR).

The code in the ``staging`` class is complex and basically works in two stages:

- *Stage One:* The first stage addresses recipes that have files they want to share with other recipes that have dependencies on the originating recipe. Normally these dependencies are installed through the :ref:ref-tasks-install task into
``${``\ :term:D\ ``}``. The ``do_populate_sysroot`` task <====
copies a subset of these files into ``${SYSROOT_DESTDIR}``. This ... snip ...

note the two slightly different references to the same task:

- ``populate_sysroot``
- ``do_populate_sysroot``

is there a consensus as to whether task names should be given with the leading "do_" when referenced in documentation?

rday