Modify

Opened 3 years ago

Closed 3 years ago

#19930 closed enhancement (not_a_bug)

Buildroot config option to make kernel modules built-in

Reported by: janos666 Owned by: developers
Priority: low Milestone:
Component: kernel Version: Trunk
Keywords: module config Cc:

Description

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...

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by jow

  • Resolution set to not_a_bug
  • Status changed from new to closed

Use the development mailing list for such suggestions.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.