diff mbox series

[15/20] migration-guides/migration/migration-6.1.rst: add note on moved class functions

Message ID 20260918-releases-notes-6-1-v1-15-2d0fceffa242@bootlin.com
State New
Headers show
Series Updates and release notes for 6.1 | expand

Commit Message

Antonin Godard Sept. 18, 2026, 1:53 p.m. UTC
OE-Core recently moved many functions defined in classes to its internal
library, document these changes in the migration guide.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/migration-guides/migration-6.1.rst | 27 ++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff mbox series

Patch

diff --git a/documentation/migration-guides/migration-6.1.rst b/documentation/migration-guides/migration-6.1.rst
index 6a98ee86d..457d27bf6 100644
--- a/documentation/migration-guides/migration-6.1.rst
+++ b/documentation/migration-guides/migration-6.1.rst
@@ -145,6 +145,33 @@  valid values for these variables will be :term:`SPDX License Expression`.
    The :oecore_path:`scripts/contrib/convert-spdx-licenses.py` script can help
    converting :term:`LICENSE` expressions in :term:`layers <Layer>`.
 
+Class file functions moved to the ``oe`` library
+------------------------------------------------
+
+Many class file functions have been moved to :oecore_path:`oe <meta/lib/oe>`
+library in :term:`OpenEmbedded-Core (OE-Core)`:
+
+-  :ref:`ref-classes-kernel`:
+
+   -  The ``get_kernel*()`` functions are now ``oe.kernel.get*()``
+   -  The default kernel build ``make`` commands now set ``ARCH``
+   -  The ``valid_arches`` variable is no longer available to change ``ARCH``
+
+-  :ref:`ref-classes-kernel-arch` no longer exports or sets ``ARCH`` and
+   ``UBOOT_ARCH``, ``oe.kernel.map_kernel_arch(d)`` and
+   ``oe.kernel.map_uboot_arch(d)`` should be used instead
+
+-  :ref:`ref-classes-kernel`, :ref:`ref-classes-uboot-config`: ``ARCH`` and
+   ``UBOOT_ARCH`` are not exported into the environment in most cases
+
+-  Various :ref:`ref-classes-utils` class Python functions are now
+   ``oe.utils.XXX()`` (see :oecore_path:`meta/lib/oe/utils.py`)
+
+-  Most :ref:`ref-classes-sanity` class functions are now ``oe.sanity.XXX()``
+   (see :oecore_path:`meta/lib/oe/sanity.py`)
+
+-  ``lsb_distro_identifier`` is now always ``oe.lsb.distro_identifier()``
+
 Removed recipes
 ---------------