Skip to contentSkip to conversation

Adding kernel module to rootfs without changing machine's configuration

DISCUSSION Yigal Reiss (yreiss) 2 participants 2 messages Apr 18, 2016

lore
Share & tools
lore
#0 lore raw

I am able to add a kernel module to the rootfs by appending it to the MACHINE_EXTRA_RDEPENDS of the <platform>.conf under the machine folder of the BSP. E.g. for adding nfq:
MACHINE_EXTRA_RDEPENDS += "kernel-module-xt-multiport ... kernel-module-xt-nfqueue"

I would like to make the override (i.e. add my own kernel module, and possibly apply kernel patches) from my own layer without touching the provided BSP layer. Is this possible?

Thanks,
Yigal

#1 lore raw
Quoted 4 lines · Yigal Reiss (yreiss)

I am able to add a kernel module to the rootfs by appending it to the MACHINE_EXTRA_RDEPENDS of the <platform>.conf under the machine folder of the BSP. E.g. for adding nfq:
MACHINE_EXTRA_RDEPENDS += "kernel-module-xt-multiport ... kernel-module-xt-nfqueue"

I would like to make the override (i.e. add my own kernel module, and possibly apply kernel patches) from my own layer without touching the provided BSP layer. Is this possible?

It is possible. The kernel recipe, and the MACHINE_EXTRA_RDEPENDS, are just like any other recipe and variable in the system.

If you have your own layer, you can bbappend the kernel recipe to add patches and in your .conf files, you can append to the extra_rdepends.

Bruce

Quoted 3 lines

Thanks,
Yigal