How to make subdirectories work in out-of-tree Linux Kernel Driver with Kbuild?
I have repository with out-of-tree kernel driver that build and works. In subdirectory I have device tree overlay that I can build and use, but I wanted the .dtbo
to be build with the driver code, mostly to handle that in DKMS.
How to make subdirectories work in out-of-tree Linux Kernel Driver with Kbuild?
I have repository with out-of-tree kernel driver that build and works. In subdirectory I have device tree overlay that I can build and use, but I wanted the .dtbo
to be build with the driver code, mostly to handle that in DKMS.
Compile linux kernel with modules
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?