Adding kernel module to rootfs without changing machine's configuration
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
Quoted 4 lines · Yigal Reiss (yreiss)
I am able to add a kernel module to the rootfs by appending it to the
MACHINE_EXTRA_RDEPENDSof 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