Skip to contentSkip to conversation

Mention existence of three supported "classes" directories

PATCH In review Robert P. J. Day 2 participants 2 messages Jul 8, 2025 – Jul 14, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Mention existence of three supported "classes" directories

Early in Section 1, mention that BitBake supports three related classes directories.

---

fix typo in first submission

doc/bitbake-user-manual/bitbake-user-manual-intro.rst +12 -0
index 539bb62d8..d25f07ff9 100644
@@ -206,6 +206,18 @@ installing (empty by default) and packaging (empty by default). These
 tasks are often overridden or extended by other classes added during the
 project development process.
 
+.. note::
+
+   While BitBake comes with just the one ``base.bbclass`` file in the
+   ``classes`` directory, it supports class files also being installed
+   in related directories ``classes-global`` and ``classes-recipe`` and
+   will automatically search all three directories for a selected class
+   file.
+
+   This means that, in this documentation, when you see a reference to
+   class files being in the ``classes`` directory, you can interpret that
+   as meaning in any one of the above three directories.
+
 Layers
 ------
 
#1 lore raw

Hi Robert,

Quoted 20 lines · Robert P. J. Day via lists.yoctoproject.org

Early in Section 1, mention that BitBake supports three related classes directories.

---

fix typo in first submission

doc/bitbake-user-manual/bitbake-user-manual-intro.rst +2 -0
index 539bb62d8..d25f07ff9 100644
@@ -206,6 +206,18 @@ installing (empty by default) and packaging (empty by default). These
  tasks are often overridden or extended by other classes added during the
  project development process.
 
+.. note::
+

doc/bitbake-user-manual/bitbake-user-manual-intro.rst installing (empty by default) and packaging (empty by default). These · line 220

Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-intro.rst +10 -0
+   While BitBake comes with just the one ``base.bbclass`` file in the
+   ``classes`` directory, it supports class files also being installed
+   in related directories ``classes-global`` and ``classes-recipe`` and
+   will automatically search all three directories for a selected class
+   file.
+
+   This means that, in this documentation, when you see a reference to
+   class files being in the ``classes`` directory, you can interpret that
+   as meaning in any one of the above three directories.
+

Maybe we can say a few words on when one is supposed to put a class in classes-recipe, classes-global or classes directory? Using the wording from YP docs, documentation/ref-manual/classes.rst probably is good enough?

Cheers,
Quentin