Skip to contentSkip to conversation

How to build the kernel with a particular driver not included into the kernel, but built as a loadable module?

DISCUSSION Yuri 2 participants 2 messages Jan 24, 2020 – Jan 27, 2020

lore
Share & tools
lore

Yuri

author
#0 lore raw

I need to debug a particular Ethernet adapter driver.

Is there a way to prevent its inclusion into the kernel, and instead to make it built as a loadable kernel module?

Thanks,

Yuri

#1 lore raw

- You can look at kernel config file and make it as module
- You can look at below macro's :
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-ab123" KERNEL_MODULE_AUTOLOAD += "mymod"