On Wed, 9 Feb 2022 at 20:10, Bruce Ashfield <bruce.ashfield@...> wrote:
I've always just used this (from kernel.bbclass):
# Allow machines to override this dependency if kernel image files are
# not wanted in images as standard
RDEPENDS:${KERNEL_PACKAGE_NAME}-base ?= "${KERNEL_PACKAGE_NAME}-image
(= ${EXTENDPKGV})"
Maybe that's the one you are remembering ?
Obviously this won't work in the situations where you want a normal
image with a kernel but also a initramfs with a kernel module in it,
as that behaviour isn't machine specific but image specific.
If this was a recommends then it could be removed via PACKAGE_EXCLUDE,
but we'd need to be sure that nothing from the kernel ended up getting
pulled in via a single module.
Ross