Updates from recent core changes
v2 cover Updates from recent core changes
This series updates the documentation for the changes applied to master in openembedded-core, bitbake, meta-poky and the docs itself.
First part of the series are documentation updates (new/removed features), while the last commit update the release note/migration guide only.
Precisely, this represents changes between 8149e74258 and 87d7341465 in poky.
---
Changes in v2:
- Reviews from Quentin Schulz (thank you!):
- KERNEL_CONSOLE: link to the kernel command line doc
- migrate_localecount drop: add commit in oecore that drops this class
- typo linux-firmware fixed, add kconfig opts for firmware
compression
- link to cython website instead of recipe. remove note on
reproducibility
- add additional % method to the bbappend paragraph. fix better ->
best
- CHECKLAYER_REQUIRED_TESTS: mention it's readonly + approval from TSC
- Be more precide the PREFERRED_RPROVIDER doc.
- Add BB_DANGLINGAPPENDS_WARNONLY note in the migration guide.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Antonin Godard (14):
ref-manual/variables: document the KERNEL_CONSOLE variable ref-manual/classes: drop the migrate_localcount class ref-manual/variables: document the FIRMWARE_COMPRESSION variable ref-manual/variables: add missing entries to SDK_ARCHIVE_TYPE ref-manual/variables: document the WIC_SECTOR_SIZE variable ref-manual/variable: remove obsolete SETUPTOOLS_INSTALL_ARGS ref-manual/classes: document the cython class
Remove debug-tweaks references
Drop support for BB_DANGLINGAPPENDS_WARNONLY ref-manual/variables: document the CHECKLAYER_REQUIRED_TESTS variable ref-manual/classes: document the yocto-check-layer class ref-manual/variables: document the CARGO_INSTALL_LIBRARIES variable ref-manual/variables: document the PREFERRED_RPROVIDER variable
migration-guides: update the release notes for 5.2
documentation/dev-manual/build-quality.rst | 2 +- documentation/dev-manual/customizing-images.rst | 3 +- documentation/dev-manual/layers.rst | 22 +- documentation/dev-manual/securing-images.rst | 12 +- documentation/migration-guides/migration-5.2.rst | 56 ++++ .../migration-guides/release-notes-5.2.rst | 345 ++++++++++++++++++++- documentation/profile-manual/intro.rst | 4 +- documentation/profile-manual/usage.rst | 2 +- documentation/ref-manual/classes.rst | 37 ++- documentation/ref-manual/features.rst | 19 +- documentation/ref-manual/variables.rst | 113 +++++-- documentation/sdk-manual/extensible.rst | 5 +- 12 files changed, 552 insertions(+), 68 deletions(-)
---
base-commit: 28850c974a3896895bc921c094071523218d6d07
change-id: 20241211-release-note-5-2-updates-015cdcfbb7d8
Best regards,
Signature · 1 line
Antonin Godard <[email protected]>
PATCH v2 1/14 ref-manual/variables: document the KERNEL_CONSOLE variable
This variables holds the value of the console kernel command line parameter.
--- documentation/ref-manual/variables.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+)
documentation/ref-manual/variables.rst +13 -0
@@ -4578,6 +4578,19 @@ system and gives an overview of their function and contents. You can register custom kernel image types with the :ref:`ref-classes-kernel` class using this variable. + :term:`KERNEL_CONSOLE` + The :term:`KERNEL_CONSOLE` variable holds the value of the ``console`` + parameter of the kernel command line and can be used in places such as a + ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating + partitioned images using wic>`. + + The default value of this variable is extracted from the first console + device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in + :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``). + + For more information, see the `Kernel command-line documentation + <https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html>`__. + :term:`KERNEL_DANGLING_FEATURES_WARN_ONLY` When kernel configuration fragments are missing for some :term:`KERNEL_FEATURES` specified by layers or BSPs,
Signature · 1 line
2.47.1
Re: [yocto-docs PATCH v2 01/14] ref-manual/variables: document the KERNEL_CONSOLE variable
Hi Antonin,
Quoted 17 lines · Antonin Godard
This variables holds the value of the
consolekernel command line parameter.Reviewed-by Quentin Schulz <[email protected]>Signed-off-by Antonin Godard <[email protected]>--- documentation/ref-manual/variables.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+)documentation/ref-manual/variables.rst +0
-0@@ -4578,6 +4578,19 @@ system and gives an overview of their function and contents. You can register custom kernel image types with the :ref:`ref-classes-kernel` class using this variable.
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 4590
Quoted 10 lines
documentation/ref-manual/variables.rst +10
-0+ :term:`KERNEL_CONSOLE` + The :term:`KERNEL_CONSOLE` variable holds the value of the ``console`` + parameter of the kernel command line and can be used in places such as a + ``wks`` description file for :ref:`Wic images <dev-manual/wic:creating + partitioned images using wic>`. + + The default value of this variable is extracted from the first console + device and setting in :term:`SERIAL_CONSOLES`. If nothing is found in + :term:`SERIAL_CONSOLES`, the default value is set to ``ttyS0,115200``). +
Missing opening parenthesis (or spurious closing parenthesis) :)
Cheers,
Quentin
PATCH v2 2/14 ref-manual/classes: drop the migrate_localcount class
In reply to Antonin GodardThis class is obsolete and was removed from openembedded-core with commits fca25fc4d7721f85f64c942307ebe7ba9f2fad3e ("migrate_localcount:
Drop long obsolete code") and d0f35207f9e19b440393a79ebf621649c495738d ("bitbake: fetch2: remove localcount and use AUTOINC instead").
--- documentation/ref-manual/classes.rst | 8 -------- 1 file changed, 8 deletions(-)
documentation/ref-manual/classes.rst +0 -8
@@ -1877,14 +1877,6 @@ each layer before starting every build. The :ref:`ref-classes-metadata_scm` class is enabled by default because it is inherited by the :ref:`ref-classes-base` class. -.. _ref-classes-migrate_localcount: - -``migrate_localcount`` -====================== - -The :ref:`ref-classes-migrate_localcount` class verifies a recipe's localcount data and -increments it appropriately. - .. _ref-classes-mime: ``mime``
Signature · 1 line
2.47.1
PATCH v2 3/14 ref-manual/variables: document the FIRMWARE_COMPRESSION variable
In reply to Antonin GodardAdded in oecore after the 20241017 update.
--- documentation/ref-manual/variables.rst | 10 ++++++++++ 1 file changed, 10 insertions(+)
documentation/ref-manual/variables.rst +10 -0
@@ -3038,6 +3038,16 @@ system and gives an overview of their function and contents. tables, examine the existing ``fs-perms.txt``, ``fs-perms-volatile-log.txt`` and ``fs-perms-volatile-tmp.txt`` files. + :term:`FIRMWARE_COMPRESSION` + The :term:`FIRMWARE_COMPRESSION` allows compressing the firmware provided + by the ``linux-firmware`` recipe. The default value of this variable is an + empty string (no compression), and the possible values it can take are + ``xz`` and ``zst``. This can allow significant disk space savings. + + For this to work, the Linux Kernel requires the + ``CONFIG_FW_LOADER_COMPRESS_XZ`` or ``CONFIG_FW_LOADER_COMPRESS_ZSTD`` + configuration options to be set. + :term:`FIT_ADDRESS_CELLS` Specifies the value of the ``#address-cells`` value for the description of the FIT image.
Signature · 1 line
2.47.1
PATCH v2 4/14 ref-manual/variables: add missing entries to SDK_ARCHIVE_TYPE
In reply to Antonin GodardBoth added recently in oecore.
--- documentation/ref-manual/variables.rst | 2 ++ 1 file changed, 2 insertions(+)
documentation/ref-manual/variables.rst +2 -0
@@ -7517,6 +7517,8 @@ system and gives an overview of their function and contents. Specifies the type of archive to create for the SDK. Valid values: - ``tar.xz`` (default) + - ``tar.zst`` + - ``7zip`` - ``zip`` Only one archive type can be specified.
Signature · 1 line
2.47.1
PATCH v2 5/14 ref-manual/variables: document the WIC_SECTOR_SIZE variable
In reply to Antonin GodardAdded recently in oecore to control the sector size of wic images.
--- documentation/ref-manual/variables.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)
documentation/ref-manual/variables.rst +11 -0
@@ -10198,6 +10198,17 @@ system and gives an overview of their function and contents. Specifies the timeout in seconds used by the ``watchdog`` recipe and also by ``systemd`` during reboot. The default is 60 seconds. + :term:`WIC_SECTOR_SIZE` + The variable :term:`WIC_SECTOR_SIZE` controls the sector size of Wic + images. In the background, this controls the value of the + ``PARTED_SECTOR_SIZE`` environment variable passed to the ``parted`` + command-line utility, used to generated the images. The default value is + ``512``. + + For more information on how to create Wic images, see the + ":ref:`dev-manual/wic:creating partitioned images using wic`" section in + the Yocto Project Development Tasks Manual. + :term:`WIRELESS_DAEMON` For ``connman`` and ``packagegroup-base``, specifies the wireless daemon to use. The default is "wpa-supplicant" (note that the value
Signature · 1 line
2.47.1
PATCH v2 6/14 ref-manual/variable: remove obsolete SETUPTOOLS_INSTALL_ARGS
In reply to Antonin GodardRemove in oecore by commit b4bdfc78e8e1cb8b86221bc55d80d601ea1a065f ("python3-cython: remove obsolete SETUPTOOLS_INSTALL_ARGS").
--- documentation/ref-manual/variables.rst | 5 ----- 1 file changed, 5 deletions(-)
documentation/ref-manual/variables.rst +0 -5
@@ -7843,11 +7843,6 @@ system and gives an overview of their function and contents. class, this variable can be used to specify additional arguments to be passed to ``setup.py build`` in the ``setuptools3_do_compile()`` task. - :term:`SETUPTOOLS_INSTALL_ARGS` - When used by recipes that inherit the :ref:`ref-classes-setuptools3` - class, this variable can be used to specify additional arguments to be - passed to ``setup.py install`` in the ``setuptools3_do_install()`` task. - :term:`SETUPTOOLS_SETUP_PATH` When used by recipes that inherit the :ref:`ref-classes-setuptools3` class, this variable should be used to specify the directory in which
Signature · 1 line
2.47.1
PATCH v2 7/14 ref-manual/classes: document the cython class
In reply to Antonin GodardSmall class added in oecore by commit 64b6e8580842949be58f97f4dff91d1f097c4020 ("classes-recipe: add cython class").
--- documentation/ref-manual/classes.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
documentation/ref-manual/classes.rst +9 -0
@@ -614,6 +614,15 @@ You will find some more details in the ":ref:`dev-manual/vulnerabilities:checking for vulnerabilities`" section in the Development Tasks Manual. +.. _ref-classes-cython: + +``cython`` +========== + +The :ref:`ref-classes-cython` class can be used by Python recipes that require +`Cython <https://cython.org/>`__ as part of their build dependencies +(:term:`DEPENDS`). + .. _ref-classes-debian: ``debian``
Signature · 1 line
2.47.1
Re: [yocto-docs PATCH v2 07/14] ref-manual/classes: document the cython class
Hi Antonin,
Quoted 5 lines · Antonin Godard
Small class added in oecore by commit
64b6e8580842949be58f97f4dff91d1f097c4020("classes-recipe: add cython class").Signed-off-by Antonin Godard <[email protected]>
For your information, I have an alias to only keep the 12 first digits of a commit (which is what's used in the Linux kernel for the Fixes: tag).
alias gitf="git --no-pager log --abbrev=12 -1 --pretty='%h (\"%s\")'"
You then simply call gitf 64b6e8580842949be58f97f4dff91d1f097c4020 and you'd get 64b6e8580842 ("classes-recipe: add cython class")
This also highlights that this commit is not in OE-Core but in Poky :) (they do not have the same commit id).
Cheers,
Quentin
Re: [yocto-docs PATCH v2 07/14] ref-manual/classes: document the cython class
Hi Quentin,
Quoted 11 lines · Quentin Schulz
Hi Antonin,
Quoted 5 lines · Antonin Godard
Small class added in oecore by commit
64b6e8580842949be58f97f4dff91d1f097c4020("classes-recipe: add cython class").Signed-off-by Antonin Godard <[email protected]>Reviewed-by Quentin Schulz <[email protected]>
Quoted 8 lines
For your information, I have an alias to only keep the 12 first digits of a commit (which is what's used in the Linux kernel for the Fixes: tag).
alias gitf="git --no-pager log --abbrev=12 -1 --pretty='%h (\"%s\")'"
You then simply call gitf
64b6e8580842949be58f97f4dff91d1f097c4020and you'd get64b6e8580842("classes-recipe: add cython class")
Thanks, added to my shell rc :)
Quoted 5 lines
This also highlights that this commit is not in OE-Core but in Poky :) (they do not have the same commit id).
Cheers,
Quentin
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 8/14 Remove debug-tweaks references
In reply to Antonin GodardWe no longer provide this feature, so remove documentation for it. In most cases, we can replace occurrences of "debug-tweaks" by "allow-empty-password empty-root-password allow-root-login post-install-logging" to achieve what this feature previously enabled.
Subtle, but the default local.conf does not include post-install-logging, so in parts where there is mention of the default local.conf file, adjust the documentation to only mention the first three above.
In the intro manual, instead of providing instructions that replace EXTRA_IMAGE_FEATURES entirely, provide ones that append EXTRA_IMAGE_FEATURES.
--- documentation/dev-manual/build-quality.rst | 2 +- documentation/dev-manual/customizing-images.rst | 3 +-- documentation/dev-manual/securing-images.rst | 12 ++++++------ documentation/profile-manual/intro.rst | 4 ++-- documentation/profile-manual/usage.rst | 2 +- documentation/ref-manual/features.rst | 19 ++++++------------- documentation/ref-manual/variables.rst | 12 ++++++++---- documentation/sdk-manual/extensible.rst | 5 ++++- 8 files changed, 29 insertions(+), 30 deletions(-)
documentation/dev-manual/build-quality.rst +1 -1
@@ -236,7 +236,7 @@ Here is an example of ``image-info.txt``: DISTRO_VERSION = 3.4+snapshot-a0245d7be08f3d24ea1875e9f8872aa6bbff93be USER_CLASSES = buildstats IMAGE_CLASSES = qemuboot qemuboot license_image - IMAGE_FEATURES = debug-tweaks + IMAGE_FEATURES = allow-empty-password empty-root-password allow-root-login post-install-logging IMAGE_LINGUAS = IMAGE_INSTALL = packagegroup-core-boot speex speexdsp BAD_RECOMMENDATIONS =
documentation/dev-manual/customizing-images.rst +1 -2
@@ -62,8 +62,7 @@ To understand how these features work, the best reference is :ref:`meta/classes-recipe/image.bbclass <ref-classes-image>`. This class lists out the available :term:`IMAGE_FEATURES` of which most map to package groups while some, such -as ``debug-tweaks`` and ``read-only-rootfs``, resolve as general -configuration settings. +as ``read-only-rootfs``, resolve as general configuration settings. In summary, the file looks at the contents of the :term:`IMAGE_FEATURES` variable and then maps or configures the feature accordingly. Based on
documentation/dev-manual/securing-images.rst +6 -6
@@ -107,18 +107,18 @@ Considerations Specific to the OpenEmbedded Build System You can take some steps that are specific to the OpenEmbedded build system to make your images more secure: -- Ensure "debug-tweaks" is not one of your selected - :term:`IMAGE_FEATURES`. +- Ensure that "allow-empty-password", "allow-root-login", or + "empty-root-password" are not one of your selected :term:`IMAGE_FEATURES`. When creating a new project, the default is to provide you with an - initial ``local.conf`` file that enables this feature using the + initial ``local.conf`` file that enables these features using the :term:`EXTRA_IMAGE_FEATURES` variable with the line:: - EXTRA_IMAGE_FEATURES = "debug-tweaks" + EXTRA_IMAGE_FEATURES = "allow-empty-password empty-root-password allow-root-login" - To disable that feature, simply comment out that line in your + To disable these features, simply comment out that line in your ``local.conf`` file, or make sure :term:`IMAGE_FEATURES` does not contain - "debug-tweaks" before producing your final image. Among other things, + any of these features before producing your final image. Among other things, leaving this in place sets the root password as blank, which makes logging in for debugging or inspection easy during development but also means anyone can easily log in during production.
documentation/profile-manual/intro.rst +2 -2
@@ -43,7 +43,7 @@ an ``sdk`` image, perhaps one of:: Alternatively, you can add ``tools-profile`` to the :term:`EXTRA_IMAGE_FEATURES` line in your ``local.conf`` file:: - EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile" + EXTRA_IMAGE_FEATURES:append = " tools-profile" If you use the ``tools-profile`` method, you don't need to build an sdk image --- the tracing and profiling tools will be included in non-sdk images as well e.g.::
@@ -69,7 +69,7 @@ packages (xxx-dbg) which you can manually install as needed. To generate debug info for packages, you can add ``dbg-pkgs`` to :term:`EXTRA_IMAGE_FEATURES` in ``local.conf``. For example:: - EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile dbg-pkgs" + EXTRA_IMAGE_FEATURES:append = " dbg-pkgs" Additionally, in order to generate the right type of debug info, we also need to set :term:`PACKAGE_DEBUG_SPLIT_STYLE` in the ``local.conf`` file::
documentation/profile-manual/usage.rst +1 -1
@@ -308,7 +308,7 @@ install the debugging information for the BusyBox package. To generate the debug info for the packages in the image, we can add ``dbg-pkgs`` to :term:`EXTRA_IMAGE_FEATURES` in ``local.conf``. For example:: - EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile dbg-pkgs" + EXTRA_IMAGE_FEATURES:append = " dbg-pkgs" Additionally, in order to generate the type of debugging information that perf understands, we also need to set :term:`PACKAGE_DEBUG_SPLIT_STYLE`
documentation/ref-manual/features.rst +6 -13
@@ -285,31 +285,24 @@ The image features available for all images are: - *dbg-pkgs:* Installs debug symbol packages for all packages installed in a given image. -- *debug-tweaks:* Makes an image suitable for development (e.g. allows - root logins, logins without passwords ---including root ones, and enables - post-installation logging). See the ``allow-empty-password``, - ``allow-root-login``, ``empty-root-password``, and ``post-install-logging`` - features in this list for additional information. - - *dev-pkgs:* Installs development packages (headers and extra library links) for all packages installed in a given image. - *doc-pkgs:* Installs documentation packages for all packages installed in a given image. -- *empty-root-password:* This feature or ``debug-tweaks`` is required if - you want to allow root login with an empty password. If these features - are not present in :term:`IMAGE_FEATURES`, a non-empty password is - forced in ``/etc/passwd`` and ``/etc/shadow`` if such files exist. +- *empty-root-password:* This feature can be used if you want to allow root + login with an empty password. If this feature is not present in + :term:`IMAGE_FEATURES`, a non-empty password is forced in ``/etc/passwd`` and + ``/etc/shadow`` if such files exist. .. note:: ``empty-root-password`` doesn't set an empty root password by itself. You get an initial empty root password thanks to the :oe_git:`base-passwd </openembedded-core/tree/meta/recipes-core/base-passwd/>` and :oe_git:`shadow </openembedded-core/tree/meta/recipes-extended/shadow/>` - recipes, and the presence of ``empty-root-password`` or ``debug-tweaks`` - just disables the mechanism which forces an non-empty password for the - root user. + recipes, and the presence of ``empty-root-password`` just disables the + mechanism which forces an non-empty password for the root user. - *lic-pkgs:* Installs license packages for all packages installed in a given image.
documentation/ref-manual/variables.rst +8 -4
@@ -2604,10 +2604,14 @@ system and gives an overview of their function and contents. - "dbg-pkgs" --- adds -dbg packages for all installed packages including symbol information for debugging and profiling. - - "debug-tweaks" --- makes an image suitable for debugging. For example, allows root logins without passwords and - enables post-installation logging. See the 'allow-empty-password' and - 'post-install-logging' features in the ":ref:`ref-features-image`" - section for more information. + - "empty-root-password" --- This feature can be used if you want to + allow root login with an empty password. + - "allow-empty-password" --- Allows Dropbear and OpenSSH to accept + logins from accounts having an empty password string. + - "allow-root-login" --- Allows Dropbear and OpenSSH to accept root logins. + - "post-install-logging" --- Enables logging postinstall script runs to + the ``/var/log/postinstall.log`` file on first boot of the image on + the target system. - "dev-pkgs" --- adds -dev packages for all installed packages. This is useful if you want to develop against the libraries in the image. - "read-only-rootfs" --- creates an image whose root filesystem is
documentation/sdk-manual/extensible.rst +4 -1
@@ -655,7 +655,10 @@ The extensible SDK supports two different development modes. # SSH is mandatory, no password simplifies the usage EXTRA_IMAGE_FEATURES += "\ ssh-server-openssh \ - debug-tweaks \ + allow-empty-password \ + allow-root-login \ + empty-root-password \ + post-install-logging \ " # Remote debugging needs gdbserver on the target device
Signature · 1 line
2.47.1
PATCH v2 9/14 Drop support for BB_DANGLINGAPPENDS_WARNONLY
In reply to Antonin GodardSupport for this variable was dropped in BitBake, see commit fca9c9e3cb6f8e9f99bf51dc5e8a8d83f4c84c69 ("cooker: Drop support for BB_DANGLINGAPPENDS_WARNONLY").
Drop this variable here as well and rewrite the "Appending Other Layers Metadata With Your Layer" section to advise to rename the recipe and check if the bbappend is still relevant - otherwise to use BBWARN.
--- documentation/dev-manual/layers.rst | 22 +++++++++++++++++----- documentation/ref-manual/variables.rst | 18 ------------------ 2 files changed, 17 insertions(+), 23 deletions(-)
documentation/dev-manual/layers.rst +17 -5
@@ -470,11 +470,23 @@ corresponding recipe file. For example, the append file means the original recipe and append filenames are version number-specific. If the corresponding recipe is renamed to update to a newer version, you must also rename and possibly update the -corresponding ``.bbappend`` as well. During the build process, BitBake -displays an error on starting if it detects a ``.bbappend`` file that -does not have a corresponding recipe with a matching name. See the -:term:`BB_DANGLINGAPPENDS_WARNONLY` -variable for information on how to handle this error. +corresponding ``.bbappend`` as well. + +During the build process, BitBake displays an error on startup if it detects a +``.bbappend`` file that does not have a corresponding recipe with a matching +name. To handle these errors, the best practice is to rename the ``.bbappend`` +to match the original recipe version. This also gives you the opportunity to see +if the ``.bbappend`` is still relevant for the new version of the recipe. + +Another method it to use the character ``%`` in the ``.bbappend`` filename. For +example, to append information to every ``6.*`` minor versions of the recipe +``someapp``, the ``someapp_6.%.bbappend`` file can be created. This way, an +error will only be triggered if the ``someapp`` recipe has a major version +update. + +Finally, another method to deal with these errors is to use the variable +:term:`BBMASK`, especially in cases where modifying the ``.bbappend`` is not +possible. Overlaying a File Using Your Layer ----------------------------------
documentation/ref-manual/variables.rst +0 -18
@@ -361,24 +361,6 @@ system and gives an overview of their function and contents. :term:`BB_CURRENTTASK` See :term:`bitbake:BB_CURRENTTASK` in the BitBake manual. - :term:`BB_DANGLINGAPPENDS_WARNONLY` - Defines how BitBake handles situations where an append file - (``.bbappend``) has no corresponding recipe file (``.bb``). This - condition often occurs when layers get out of sync (e.g. ``oe-core`` - bumps a recipe version and the old recipe no longer exists and the - other layer has not been updated to the new version of the recipe - yet). - - The default fatal behavior is safest because it is the sane reaction - given something is out of sync. It is important to realize when your - changes are no longer being applied. - - You can change the default behavior by setting this variable to "1", - "yes", or "true" in your ``local.conf`` file, which is located in the - :term:`Build Directory`: Here is an example:: - - BB_DANGLINGAPPENDS_WARNONLY = "1" - :term:`BB_DEFAULT_TASK` See :term:`bitbake:BB_DEFAULT_TASK` in the BitBake manual.
Signature · 1 line
2.47.1
PATCH v2 10/14 ref-manual/variables: document the CHECKLAYER_REQUIRED_TESTS variable
In reply to Antonin GodardThis was introduced in oecore by commit ce2e42ace2d15fb6745437cf0a7f07d28398ca12 ("insane: Split ERROR_QA into CHECKLAYER_REQUIRED_TESTS").
--- documentation/ref-manual/variables.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)
documentation/ref-manual/variables.rst +11 -0
@@ -1250,6 +1250,17 @@ system and gives an overview of their function and contents. - :term:`BUILDSDK_CFLAGS` when building for an SDK (i.e. ``nativesdk-``) + :term:`CHECKLAYER_REQUIRED_TESTS` + The :term:`CHECKLAYER_REQUIRED_TESTS` variable lists the QA tests that are + required to be enabled to pass the Yocto Project Compatible status for a + layer. It is meant to be a read-only variable and any change to the + variable may be done with the approval of the :oe_wiki:`Technical Steering + Committee (TSC) </TSC>`. + + For more information on the Yocto Project Compatible status, see + the :ref:`dev-manual/layers:Making Sure Your Layer is Compatible With + Yocto Project` section of the Yocto Project Development Manual. + :term:`CLASSOVERRIDE` An internal variable specifying the special class override that should currently apply (e.g. "class-target", "class-native", and so
Signature · 1 line
2.47.1
PATCH v2 11/14 ref-manual/classes: document the yocto-check-layer class
In reply to Antonin GodardThis class is used by the yocto-check-layer script to check if a layer complies to the Yocto Project Compatible status.
--- documentation/ref-manual/classes.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
documentation/ref-manual/classes.rst +20 -0
@@ -3602,3 +3602,23 @@ the Waf build system. You can use the :term:`PACKAGECONFIG_CONFARGS` variables to specify additional configuration options to be passed on the Waf command line. + +.. _ref-classes-yocto-check-layer: + +``yocto-check-layer`` +===================== + +The :ref:`ref-classes-yocto-check-layer` class is used by the +:oe_git:`yocto-check-layer </openembedded-core/tree/scripts/yocto-check-layer>` +script to ensure that packages from Yocto Project Compatible layers don't skip +required QA checks listed in :term:`CHECKLAYER_REQUIRED_TESTS` defined by the +:ref:`ref-classes-insane` class. + +It adds an anonymous python function with extra processing to all recipes, +and globally inheriting this class with :term:`INHERIT` is not advised. Instead +the ``yocto-check-layer`` script should be used as it handles usage of this +class. + +For more information on the Yocto Project +Compatible layers, see the :ref:`dev-manual/layers:Making Sure Your Layer is +Compatible With Yocto Project` section of the Yocto Project Development Manual.
Signature · 1 line
2.47.1
PATCH v2 12/14 ref-manual/variables: document the CARGO_INSTALL_LIBRARIES variable
In reply to Antonin GodardThis variable controls whether libraries compiled by recipes inheriting cargo are installed or not.
--- documentation/ref-manual/variables.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
documentation/ref-manual/variables.rst +9 -0
@@ -1230,6 +1230,15 @@ system and gives an overview of their function and contents. :term:`Metadata` so it does not need to be parsed every time BitBake is started. + :term:`CARGO_INSTALL_LIBRARIES` + When inheriting the :ref:`ref-classes-cargo` class, the variable + :term:`CARGO_INSTALL_LIBRARIES` can be set to a non-empty value by + individual recipes to enable the installation of the libraries the + recipe has built in ``${B}/target/${CARGO_TARGET_SUBDIR}`` (files ending + with ``.so`` or ``.rlib``). By default this variable is not defined and + libraries are not installed, to replicate the behavior of the ``cargo + install`` command. + :term:`CC` The minimal command and arguments used to run the C compiler.
Signature · 1 line
2.47.1
PATCH v2 13/14 ref-manual/variables: document the PREFERRED_RPROVIDER variable
In reply to Antonin GodardThis variable is similar to the PREFERRED_PROVIDER variable but it denotes a runtime provider specifically.
--- documentation/ref-manual/variables.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
documentation/ref-manual/variables.rst +22 -0
@@ -6726,6 +6726,28 @@ system and gives an overview of their function and contents. :term:`PREFERRED_PROVIDERS` See :term:`bitbake:PREFERRED_PROVIDERS` in the BitBake manual. + :term:`PREFERRED_RPROVIDER` + The :term:`PREFERRED_RPROVIDER` variable works like the + :term:`PREFERRED_PROVIDER` variable, but it denotes packages that provide a + *runtime* component. Runtime providers are declared in recipes that set + the :term:`RPROVIDES` variable for a specific package. + + For example:: + + PREFERRED_RPROVIDER_virtual-x-terminal-emulator = "rxvt-unicode" + + This statement sets the runtime provider for the X terminal emulator to + ``rxvt-unicode``. The ``rxvt-unicode`` package is a runtime provider of + this component because the ``rxvt-unicode`` recipe set the following + :term:`RPROVIDES` definition for the ``rxvt-unicode`` (``${PN}``) + package:: + + RPROVIDES:${PN} = "virtual-x-terminal-emulator" + + For more information on virtual providers, see the + ":ref:`dev-manual/new-recipe:using virtual providers`" section in the + Yocto Project Development Tasks Manual. + :term:`PREFERRED_VERSION` If there are multiple versions of a recipe available, this variable determines which version should be given preference. You must always
Signature · 1 line
2.47.1
PATCH v2 14/14 migration-guides: update the release notes for 5.2
In reply to Antonin GodardUpdate the release note and migration guide for the 5.2 release. This release is not due until April 2025, but this catches up what has already been applied since 5.1.
Precisely, this tracks the important changes between commits 8149e74258 and 87d7341465 in poky.
--- documentation/migration-guides/migration-5.2.rst | 56 ++++ .../migration-guides/release-notes-5.2.rst | 345 ++++++++++++++++++++- 2 files changed, 399 insertions(+), 2 deletions(-)
documentation/migration-guides/migration-5.2.rst +56 -0
@@ -14,6 +14,28 @@ Migration notes for |yocto-ver| (|yocto-codename|) This section provides migration information for moving to the Yocto Project |yocto-ver| Release (codename "|yocto-codename|") from the prior release. +``debug-tweaks`` removed from :term:`IMAGE_FEATURES` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The ``debug-tweaks`` image feature is now removed because it was too vague about +what it achieved: an image on which the ``root`` user can login without a +password. + +To achieve the same result, the features previously added by ``debug-tweaks`` +should be manually added to the :term:`IMAGE_FEATURES` variable. These are: + +- ``allow-empty-password`` +- ``allow-root-login`` +- ``empty-root-password`` +- ``post-install-logging`` + +Such a statement would be:: + + IMAGE_FEATURES += "allow-empty-password allow-root-login empty-root-password post-install-logging" + +See the list of available image features in the :ref:`ref-features-image` +section of the Yocto Project Reference Manual. + Supported kernel versions ~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -34,9 +56,24 @@ See :ref:`all supported distributions <system-requirements-supported-distros>`. Go language changes ~~~~~~~~~~~~~~~~~~~ +Rust language changes +~~~~~~~~~~~~~~~~~~~~~ + +- Recipes inheriting the :ref:`ref-classes-cargo` do not install libraries by + default anymore. This behavior can be controlled by the + :term:`CARGO_INSTALL_LIBRARIES` variable. + systemd changes ~~~~~~~~~~~~~~~ +- Support for ``split-usr`` and ``unmerged-usr`` are now removed after Systemd + was updated to version 255. This option allowed installing Systemd in a + system where directories such as ``/lib``, ``/sbin`` or ``/bin`` are *not* + merged into ``/usr``. + + As a consequence, the ``systemd`` recipe no longer contains the ``usrmerge`` + :term:`PACKAGECONFIG` option as it is now implied by default. + Recipe changes ~~~~~~~~~~~~~~
@@ -45,16 +82,35 @@ Removed variables The following variables have been removed: +- ``PACKAGE_SNAP_LIB_SYMLINKS``: related to an unmaintained and obsolete + "micro" :term:`distro <DISTRO>`. + +- ``SETUPTOOLS_INSTALL_ARGS``: obsolete and unused variable. + +- ``BB_DANGLINGAPPENDS_WARNONLY``: support for only warning the user when a + ``.bbappend`` file doesn't apply to the original recipe has been dropped. See + the :ref:`dev-manual/layers:Appending Other Layers Metadata With Your Layer` + section of the Yocto Project Development Tasks Manual for alternatives to + this variable. + Removed recipes ~~~~~~~~~~~~~~~ The following recipes have been removed in this release: +- ``liburi-perl``: moved to :oe_git:`meta-perl </meta-openembedded/tree/meta-perl>`. +- ``python3-isodate``: moved to :oe_git:`meta-python </meta-openembedded/tree/meta-python>`. +- ``python3-iniparse``: removed as there are no consumers of this recipe in + :oe_git:`openembedded-core </openembedded-core>` or :oe_git:`meta-openembedded </meta-openembedded>`. + Removed classes ~~~~~~~~~~~~~~~ The following classes have been removed in this release: +- ``migrate_localcount.bbclass``: obsolete class for which code was already + removed in 2012. + Miscellaneous changes ~~~~~~~~~~~~~~~~~~~~~
documentation/migration-guides/release-notes-5.2.rst +343 -2
379 lines not on this page · raw message
Signature · 1 line
2.47.1