Skip to content

twoerner/kernel-config-diff-to-fragment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kernel-config-diff-to-fragment
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The kconfig system is able to work with kconfig fragments. A kconfig
fragment is a file that contains a subset of a full kconfig file. A set of
fragments can be merged with a base defconfig to produce a full kconfig.
Fragments are usefull for adding or removing isolated functionality.

Generating a fragment is usually done by hand, this tool helps to automate
the process.

Start with a current configuration, say in .config, save this to
'beforeconfig'. Then run 'make menuconfig', tweak the configuration however
you wish. When you're done save the resulting new config to 'afterconfig'.

Generate a unified diff of the two configurations:
	$ diff -u beforeconfig afterconfig > frag.diff

Run 'frag.diff' through this tool to produce a kconfig fragment:
	$ kernel-config-to-fragment frag.diff > frag.cfg

About

convert a unified diff of 2 kconfigs to a kconfig fragment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published