I am trying to build a kernel module (.ko) out of a driver that doesn't have module configuration by default. I want to avoid having a built-in driver because I get firmware loading errors.
I did the following,
Bt_driver.c:module_int(BT_Driver_init); module_exit(BT_Driver_deinit);Menuconfig:
obj-$(CONFIG_BT_DRI) := Bt_driver.oKconfig:
tristate "Bt Module " // So, I can select Y, N and M optiondefconfig
CONFIG_BT_DRI=m
After the build was done, I didn't find a Bt_driver.ko module in the build location.