[yocto] Exclude kernel module from image

John Klug John.Klug at multitech.com
Wed Jan 23 11:34:49 PST 2019


>>
>> I would prefer not to create a list of every kernel module I wish to include.

>right.. can't you disable these modules in the kernel recipe instead
>using some config fragment?


We would like to use the same kernel .config across multiple images, as all we are changing is the removal of the modules, unless you can somehow specify which image recipe deletes certain modules in the kernel recipe.


<http://www.multitech.com/>
________________________________
________________________________
From: Nicolas Dechesne <nicolas.dechesne at linaro.org>
Sent: Wednesday, January 23, 2019 1:04:48 PM
To: John Klug
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Exclude kernel module from image

On Wed, Jan 23, 2019 at 7:35 PM John Klug <John.Klug at multitech.com> wrote:
>
> I am looking for a way to create an image with an exclusion list of kernel modules packages.
>
> If I use PACKAGE_EXCLUDE, I see the following:
>
>     Collected errors:
>      * calculate_dependencies_for: Cannot satisfy the following dependencies for kernel-modules:
>
> The list of modules that follows are the very kernel module packages I am trying to exclude.

if you want to exclude *all* kernel modules it's simple, you can
achieve that with the following in your image recipe.

BAD_RECOMMENDATIONS = "kernel-modules"

This is easy because kernel-modules comes as RRECOMMENDS from
packagegroup-core-boot.. but if you exclude just some modules, then
you are breaking an RDEPENDS relationship which is a fatal error..

>
> I would prefer not to create a list of every kernel module I wish to include.

right.. can't you disable these modules in the kernel recipe instead
using some config fragment?

>
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> http://mail2.multitech.com:32224/?dmVyPTEuMDAxJiY0YmM3Zjk1YTkyYTYwMjg3ND01QzQ4QkFERV8xNzcwNl8xNjMxOF8yJiZlYmI5Zjc2MGY3NjAzOTQ9MTMzMyYmdXJsPWh0dHBzJTNBJTJGJTJGbGlzdHMlMkV5b2N0b3Byb2plY3QlMkVvcmclMkZsaXN0aW5mbyUyRnlvY3Rv


More information about the yocto mailing list