Here[1] both: MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" and MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree" are defined. I would say that MACHINE_ESSENTIAL_EXTRA_RDEPENDS wins, so does it make any sense to define both? [1] https://git.yoctoproject.org/poky/tree/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
It makes no sense to put 'kernel-devicetree' into both MACHINE_EXTRA_RRECOMMENDS and MACHINE_ESSENTIAL_EXTRA_RDEPENDS. I can make a patch to drop it from MACHINE_EXTRA_RRECOMMENDS. But since the 'kernel-modules' is not essential for booting the machine, it should be set in MACHINE_EXTRA_RRECOMMENDS. And the 'kernel-image' and 'kernel-devicetree' are essential for the machine to boot and should be set in MACHINE_ESSENTIAL_EXTRA_RDEPENDS.
What if you want to build a small image like a core-image-minimal and would like to have kernel-modules inside? With MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" they will not be added, but with MACHINE_ESSENTIAL_EXTRA_RDEPENDS they will be added. What would you suggest?
The 'kernel-modules' is not essential for booting the machine, so it is set in the MACHINE_EXTRA_RRECOMMENDS. This is consistent with all other machines (qemus, genericx86). We can't includes all the packages in core-image-minimal image. If you indeed want to include the 'kernel-modules' in your core-image-minimal image, you should modify your conf/local.conf by adding 'IMAGE_INSTALL:append = "kernel-modules".
Robert, does Kevin's explanation help.
Yes, this explanation helps. Thanks!
Robert, it seems you got the info you need so I'm closing the bug.
I guess Kevin should make a patch as indicated above: "It makes no sense to put 'kernel-devicetree' into both MACHINE_EXTRA_RRECOMMENDS and MACHINE_ESSENTIAL_EXTRA_RDEPENDS. I can make a patch to drop it from MACHINE_EXTRA_RRECOMMENDS. "
this seems to be fixed commit 97306ebc00ef3dd7eacab817659d980c29da96ea Author: Kevin Hao <kexin.hao@windriver.com> Date: Tue Jan 2 19:57:08 2024 +0800 beaglebone-yocto: Remove the redundant kernel-devicetree The kernel-devicetree is set in both MACHINE_ESSENTIAL_EXTRA_RDEPENDS and MACHINE_EXTRA_RRECOMMENDS. Since it is an essential package for boot, drop the one in MACHINE_EXTRA_RRECOMMENDS. [YOCTO #15229] (From meta-yocto rev: 5935d4fd751153f0f1c930924a5e2771f6dd5e72) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-MACHINE_EXTRA_RRECOMMENDS = "kernel-modules kernel-devicetree" +MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
Kevin, any news or move to 5.2 ?
This issue has already been fixed, so close it.