kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Update a newly-created '.config' file with some predefined values
@ 2017-05-30  9:28 Roman Storozhenko
  2017-05-30 15:57 ` valdis.kletnieks at vt.edu
  2017-05-31  7:26 ` Roman Storozhenko
  0 siblings, 2 replies; 3+ messages in thread
From: Roman Storozhenko @ 2017-05-30  9:28 UTC (permalink / raw)
  To: kernelnewbies

Hello everybody,

I have a host machine and I have a VM machine running CentOS 7 with 3.x. There is
a kernel source tree on the host. I have made 'make menuconfig',
populated all options that I want to have in my custom kernel and as a
result got a '.config' file. Then I copied a centos-default distro config file from my VM's
'boot' catalog to my host's kernel source tree catalog. So now I have
two files in my source tree: '.config' and '.config.old'. I am able to
see difference between them using the following command:

    scripts/diffconfig .config.old .config | less

But is there anyway to update values in '.config' file with the
apropriate values from '.config.old' file?
I just want to make sure that all modules will be included in a
new custom kernel.

Thanks in advance,
Roman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Update a newly-created '.config' file with some predefined values
  2017-05-30  9:28 Update a newly-created '.config' file with some predefined values Roman Storozhenko
@ 2017-05-30 15:57 ` valdis.kletnieks at vt.edu
  2017-05-31  7:26 ` Roman Storozhenko
  1 sibling, 0 replies; 3+ messages in thread
From: valdis.kletnieks at vt.edu @ 2017-05-30 15:57 UTC (permalink / raw)
  To: kernelnewbies

On Tue, 30 May 2017 12:28:34 +0300, Roman Storozhenko said:
> Hello everybody,
>
> I have a host machine and I have a VM machine running CentOS 7 with 3.x. Ther
e is
> a kernel source tree on the host. I have made 'make menuconfig',
> populated all options that I want to have in my custom kernel and as a
> result got a '.config' file. Then I copied a centos-default distro config fil
e from my VM's
> 'boot' catalog to my host's kernel source tree catalog. So now I have
> two files in my source tree: '.config' and '.config.old'. I am able to
> see difference between them using the following command:
>
>     scripts/diffconfig .config.old .config | less
>
> But is there anyway to update values in '.config' file with the
> apropriate values from '.config.old' file?
> I just want to make sure that all modules will be included in a
> new custom kernel.

If you want *ALL* modules, just copy the centos-default config to .config

If you want everything from your custom config, copy *that* to .config

If you want to mix-and-match, you're probably going to end up running
diffconfig in one window, and 'make menuconfig' in another, and for each
thing that's different, decide if you want it included or not. Oh, and copy
the config that's closest to what you want to .config to minimize the number
of changes you'll need to do.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170530/6f6b5848/attachment.bin 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Update a newly-created '.config' file with some predefined values
  2017-05-30  9:28 Update a newly-created '.config' file with some predefined values Roman Storozhenko
  2017-05-30 15:57 ` valdis.kletnieks at vt.edu
@ 2017-05-31  7:26 ` Roman Storozhenko
  1 sibling, 0 replies; 3+ messages in thread
From: Roman Storozhenko @ 2017-05-31  7:26 UTC (permalink / raw)
  To: kernelnewbies

On Tue, May 30, 2017 at 12:28:34PM +0300, Roman Storozhenko wrote:
> Hello everybody,
> 
> I have a host machine and I have a VM machine running CentOS 7 with 3.x. There is
> a kernel source tree on the host. I have made 'make menuconfig',
> populated all options that I want to have in my custom kernel and as a
> result got a '.config' file. Then I copied a centos-default distro config file from my VM's
> 'boot' catalog to my host's kernel source tree catalog. So now I have
> two files in my source tree: '.config' and '.config.old'. I am able to
> see difference between them using the following command:
> 
>     scripts/diffconfig .config.old .config | less
> 
> But is there anyway to update values in '.config' file with the
> apropriate values from '.config.old' file?
> I just want to make sure that all modules will be included in a
> new custom kernel.
> 
> Thanks in advance,
> Roman

I have found a solution. There is a script: 

scripts/kconfig/merge_config.sh

It allows to mix many configuration files in a base config. For example:

scripts/kconfig/merge_config.sh -m -r .config
~/kernel/conf_mixins/.config_deb

There are kernel options in .config_deb that include some debugging to the kernel
default .config. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-31  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-30  9:28 Update a newly-created '.config' file with some predefined values Roman Storozhenko
2017-05-30 15:57 ` valdis.kletnieks at vt.edu
2017-05-31  7:26 ` Roman Storozhenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).