[Buildroot] Remove all kernel modules from a buildroot build

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Sep 2 12:39:53 UTC 2016


Hello,

On Fri, 2 Sep 2016 08:48:55 +0200, Mythbu2 wrote:

> Is there a way of configuring buildroot to omit all this modules and 
> save the space and therefore reduce the image size?

Yes: customize your kernel configuration and remove all the kernel
modules that you don't need.

For the Raspberry Pi, we're using the "bcmrpi" defconfig that comes
from the Linux kernel tree hosted on Github at
https://github.com/raspberrypi/linux.git. If this configuration doesn't
suit you, you simply have to customize it.

See
https://buildroot.org/downloads/manual/manual.html#_configuration_of_other_components
for some details.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list