Skip to contentSkip to conversation

Exclude kernel module from image

DISCUSSION John Klug 2 participants 3 messages Jan 23, 2019

lore
Share & tools
lore

John Klug

author
#0 lore raw

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.

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

#1 lore raw
Quoted 9 lines · John Klug

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..

Quoted 2 lines

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?

Quoted 11 lines

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

author
#2 lore raw
Quoted 5 lines
Quoted 2 lines

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 <[email protected]>
Sent: Wednesday, January 23, 2019 1:04:48 PM
To: John Klug
Cc: [email protected]
Subject: Re: [yocto] Exclude kernel module from image

Quoted 9 lines · John Klug

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..

Quoted 2 lines

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?

Quoted 11 lines

--
_______________________________________________
yocto mailing list
[email protected]
http://mail2.multitech.com:32224/?dmVyPTEuMDAxJiY0YmM3Zjk1YTkyYTYwMjg3ND01QzQ4QkFERV8xNzcwNl8xNjMxOF8yJiZlYmI5Zjc2MGY3NjAzOTQ9MTMzMyYmdXJsPWh0dHBzJTNBJTJGJTJGbGlzdHMlMkV5b2N0b3Byb2plY3QlMkVvcmclMkZsaXN0aW5mbyUyRnlvY3Rv