@@ -17,6 +17,7 @@ Yocto Project Reference Manual
structure
classes
tasks
+ library-functions
fragments
devtool-reference
kickstart
new file mode 100644
@@ -0,0 +1,72 @@
+.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
+
+=================
+Library Functions
+=================
+
+This chapter lists common library functions available under the
+:oecore_path:`meta/lib` directory in :term:`OpenEmbedded-Core (OE-Core)`.
+
+These functions can be used in recipes or configuration files with
+:ref:`inline-Python <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:Inline
+Python Variable Expansion>` or :ref:`Python
+<bitbake:bitbake-user-manual/bitbake-user-manual-metadata:BitBake-Style Python
+Functions>` functions.
+
+``oe``
+======
+
+Reference documentation for modules in :oecore_path:`meta/lib/oe`.
+
+``oe.data``
+-----------
+
+.. automodule:: oe.data
+ :members:
+
+``oe.go``
+---------
+
+.. automodule:: oe.go
+ :members:
+
+``oe.kernel``
+-------------
+
+.. automodule:: oe.kernel
+ :members:
+
+``oe.lsb``
+----------
+
+.. automodule:: oe.lsb
+ :members:
+
+``oe.path``
+-----------
+
+.. automodule:: oe.path
+ :members:
+
+``oe.purl``
+-----------
+
+.. automodule:: oe.purl
+ :members:
+
+``oe.utils``
+------------
+
+.. automodule:: oe.utils
+ :members:
+
+``oe.types``
+------------
+
+.. automodule:: oe.types
+ :members:
+ boolean,
+ float,
+ integer,
+ path,
+ regex,
Like the BitBake User Manual[1], add a "Library Functions" section in the documentation which uses the autodoc Sphinx extention to auto-document useful modules of the oe library. [1]: https://git.openembedded.org/bitbake/tree/doc/bitbake-user-manual/bitbake-user-manual-library-functions.rst Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/ref-manual/index.rst | 1 + documentation/ref-manual/library-functions.rst | 72 ++++++++++++++++++++++++++ 2 files changed, 73 insertions(+)