Skip to contentSkip to conversation

What is procedure for building custom Linux-2.6.36 from BuildRoot?

Buildroot Charles Martel 3 participants 3 messages Nov 8, 2010 – Nov 9, 2010

lore
Share & tools
lore
#0 lore raw

I noticed that BuildRoot will build a linux-2.6.36 kernel using default values. What is the procedure for building a custom build of the Linux kernel? Specifically, BuildRoot builds SPI Drivers as modules (.ko) by default. I'd like to have the SPI Drivers built-in (Y instead of M) and also have the UserSpace SPIDEV built. Can this be done from BuildRoot or must I rebuild the Linux kernel after building the BuildRoot filesystem?

Also, I had to modify the Makefile to not wipe out the Linux .config file when I execute "make clean". Is there a better way to store the customized values in Linux .config as part of the BuildRoot build configuration?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101108/fc65055d/attachment.html>

#1 lore raw

Hello Charles,

From the buildroot configuration tool, in the kernel submenu, you can select a "custom tarball" kernel (which might be a 2.6.36 in your case) and also a "custom config file".

But if you're going to hack on your kernel, it make sense to make a separate build.

Regards,

--
Lionel Landwerlin

Quoted 22 lines · Charles Martel

I noticed that BuildRoot will build a linux-2.6.36 kernel using default values.? What is the procedure for building a custom build of the Linux kernel?

Specifically, BuildRoot builds SPI Drivers as modules (.ko) by default.? I'd like to have the SPI Drivers built-in (Y instead of M) and also have the UserSpace SPIDEV built.

Can this be done from BuildRoot or must I rebuild the Linux kernel after building the BuildRoot filesystem?

Also, I had to modify the Makefile to not wipe out the Linux .config file when I execute "make clean".? Is there a better way to store the customized values in Linux .config as part of the BuildRoot build configuration?

Thanks.

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw
Quoted 3 lines · On Tue, 9 Nov 2010 17:45:40 +0100 Lionel Landwerlin <[email protected]>…

From the buildroot configuration tool, in the kernel submenu, you can select a "custom tarball" kernel (which might be a 2.6.36 in your case) and also a "custom config file".

And to adjust the kernel configuration, you can do:

make linux26-menuconfig

or

make linux26-xconfig

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com