0
windysea

rfc Kernel .config support as LKM instead of static bind?

Recommended Posts

Currently all of the Armbian kernel defconfigs include the actual build configuration statically as part of the kernel.  The standard Armbian build process also includes a copy of the .config file in /boot/config-<version>-<platform>.

 

Are both required, or should the kernel configurations be updated to make Kernel .config support an LKM instead of static bind?

 

True this is a minor item.  The actual kernel configuration takes up a very small amount of memory, though on many SBCs with limited memory to start with every byte not used by the kernel can help.

 

This would amount to changing from:

CONFIG_IKCONFIG=y

to:

CONFIG_IKCONFIG=m

 

 

About the only thing that might "break" would be any tools that use 'extract-ikconfig' or similar against the on-disk binary to extract the built-in .config, but with the kernel configuration already included in the linux-image-*.deb and installed under /boot as a separate text file this should not be needed.

 

I can submit a PR for -DEV if this sounds reasonable for all of the existing defconfigs in config/kernel but wanted feedback on whether this would be useful or whether this should be left as-is.

 

Share this post


Link to post
Share on other sites
12 hours ago, windysea said:

I can submit a PR for -DEV if this sounds reasonable for all of the existing defconfigs in config/kernel but wanted feedback on whether this would be useful or whether this should be left as-is.

Right ! But how much memory gain this will provide ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0