On Thu, 2022-02-10 at 10:52 +0000, Ross Burton wrote:
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.
I think making this a RRECOMMENDS and doing that may enable more workflows and make things easier all around. Can you check and see if it does pull other unwanted stuff in? I'm hoping it doesn't.