Skip to contentSkip to conversation

How to let a kernel module depend on another kernel module ?

DISCUSSION [email protected] 1 participant 1 message Nov 15, 2018

lore
Share & tools
lore
#0 lore raw

Hi all,

I am upgrading our BSP from Krogoth to Sumo. I have read the documentation about the recipe-specific sysroots and this works fine for normal recipes. However I am stuck with upgrading the out-of-tree kernel module recipes.

We have kernel-module-foo and kernel-module-bar. The bar module needs header files that foo module installs in usr/include/linux.
I added DEPENDS = "kernel-module-foo" to the recipe of module bar. The recipe-sysroot directory for kernel-module-bar does indeed have the foo include files.

However compilation of kernel-module-bar stops with an error because it can't find the foo header files.

So does anyone know what is the correct way to let one out-of-tree kernel module depend on another one?

thanks in advance,

Winfried