docs: migration-4.0: specify variable name change for kernel inclusion in image recipe
PATCH 1/2 docs: migration-4.0: specify variable name change for kernel inclusion in image recipe
From: Michael Opdenacker <[email protected]>
From: Quentin Schulz <[email protected]>
Since commit f6d963fa6d0e ("kernel: make kernel-base recommend kernel-image, not depend"), present in Kirkstone 4.0, one should set RRECOMMENDS and not RDEPENDS to avoid including the kernel in the image, so let's update the documentation to reflect that.
--- documentation/migration-guides/migration-4.0.rst | 3 +++ 1 file changed, 3 insertions(+)
documentation/migration-guides/migration-4.0.rst +3 -0
@@ -265,3 +265,6 @@ Miscellaneous changes when parsing recipes. Any code depending on the previous behaviour will no longer work - change any such code to explicitly use appropriate path variables instead. +- In order to exclude the kernel image from the image rootfs, + :term:`RRECOMMENDS`\ ``:${KERNEL_PACKAGE_NAME}-base`` should be set instead of + :term:`RDEPENDS`\ ``:${KERNEL_PACKAGE_NAME}-base``.
Signature · 1 line
2.37.2
PATCH 2/2 docs: kernel-dev: faq: update tip on how to not include kernel in image
From: Michael Opdenacker <[email protected]>
From: Quentin Schulz <[email protected]>
Since commit f6d963fa6d0e ("kernel: make kernel-base recommend kernel-image, not depend"), present in Kirkstone 4.0, one should set RRECOMMENDS and not RDEPENDS to avoid including the kernel in the image, so let's update the documentation to reflect that.
--- documentation/kernel-dev/faq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/kernel-dev/faq.rst +1 -1
@@ -36,7 +36,7 @@ How do I install/not-install the kernel image on the root filesystem? The kernel image (e.g. ``vmlinuz``) is provided by the ``kernel-image`` package. Image recipes depend on ``kernel-base``. To specify whether or not the kernel image is installed in the generated -root filesystem, override ``RDEPENDS:${KERNEL_PACKAGE_NAME}-base`` to include or not +root filesystem, override ``RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base`` to include or not include "kernel-image". See the ":ref:`dev-manual/common-tasks:appending other layers metadata with your layer`" section in the
Signature · 1 line
2.37.2