#19930: Buildroot config option to make kernel modules built-in
---------------------------+------------------------
 Reporter:  janos666       |      Owner:  developers
     Type:  enhancement    |     Status:  new
 Priority:  low            |  Milestone:
Component:  kernel         |    Version:  Trunk
 Keywords:  module config  |
---------------------------+------------------------
 I think it could be useful to have a buildroot config option under General
 build options / kernel configuration:

 [*] Make every selected (standard) kernel modules built-in
     [*] Disable loadable-module support

 The main option should be very easy to implement: mearly a switch between
 "=m" and "=y" in the kernel config script.

 The sub-option I am not sure about since I don't know if every possible
 modules the buildroot might build and install are strictly standard kernel
 modules (come from the upstream linux kernel sources) or there are some
 custom openwt modules (not part of the mainline linux kernel).
 In the first case, this should be just as straight-forward to implement as
 the main option. They might even be combined into a single option
 (something like "build it all in and disable loadable module support") but
 I think it allows for some desireable flexibility.
 In the second case, the option could still work but it would probably
 require some extra work and testing (I am not sure since I am not aware
 how those custom modules are handled right now; if there are any...).
 This sub-option could also exclude some additional loadable-module related
 executables from the final images like modprobe, lsmod, etc.(*)

 Possible benefits: slightly smaller and faster kernel (*slightly smaller
 image?)
 Possible drawbacks: none? (if left disabled by default and not misused...)


 I tried to achive this by using kernel_menuconfig but it's not possible
 (in a standard way) to disable every modules in menuconfig because some
 packages might pull them in as dependencies (I ended up module loading
 related bootup errors). So, it's harder to work around it then do it
 properly...

--
Ticket URL: <https://dev.openwrt.org/ticket/19930>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to