I created a module in samples/my_module
with Kconfig file and updated Makefile and Kconfig files in samples/
. When I build kernel with my module marked as [*]
(so it is built-in) everything is ok and module is successfuly loaded during boot. But if I want it to be a module([M]
), it does not appear anywhere.
Can I configure kernel to have my_module.ko
somewhere in rootfs?
Things like make -C <path_to_kernel_src> M=$PWD
from kernel docs don’t help. They build modules and leave them somewhere in my system, but I want to have module in bzImage.
Vladimir Riabchun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.