On Wed, Nov 6, 2019 at 9:48 AM Maik Keller <[email protected]> wrote:
>
> Dear list,
>
> I want to deploy a kernel-module like 
> poky/meta-skeleton/recipes-kernel/hello-mod.
> But, when I add IMAGE_INSTALL += "kernel-module-hello" to my image, the 
> modules is as expected below /lib/modules/ , more then that the kernel is 
> also installed below /boot/.
> My kernel should not be part of the rootfs, but "inherit module" forces the 
> kernel to be populated below /boot/Image.
>
> How to correctly stop the kernel to be part of the rootfs?

It depends on what image you are building, etc. So there's no generic answer.

I did have a look at the kernel-module-split.bbclass, and I didn't see
an explicit RDEPENDS on the kernel-image, so it is something that
should be doable (to install them without installing the kernel
image).

The "traditional" way to do this is commented in the 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"

So if you explicitly clear RDEPENDS_${KERNEL_PACKAGE_NAME}-base in
your kernel recipe (or a bbappend), it should at least stop trying to
install the image if kernel-base is being installed.

Cheers,

Bruce

>
> Best John
> --
> _______________________________________________
> linux-yocto mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/linux-yocto



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-- 
_______________________________________________
linux-yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to