Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1318209

Re: [RFC] kconfig: a new command line tool to set configs

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject Re: [RFC] kconfig: a new command line tool to set configs
Date 2016-01-26 19:00 +0100
Message-ID <qVg4k-7AF-27@gated-at.bofh.it> (permalink)
References <ppfLs-5JF-23@gated-at.bofh.it> <pBC9B-3NW-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jun 15, 2015 at 02:55:46PM +0200, Michal Marek wrote:
> On 2015-05-12 12:31, Dan Carpenter wrote:
> > This is an ugly hack job I made last night and it barely works.  It
> > does two things:
> > 
> > 1)  Sometimes I want to search for a config so I have to load
> >     menuconfig, then search for the config entry, then exit.  With
> >     this script I simply run:
> > 
> > 	./scripts/kconfig/kconfig search COMEDI
> > 
> > 2)  I quite often try to enable something by doing:
> > 
> > 	echo CONFIG_FOO=y >> .config
> > 	make oldconfig
> > 	grep CONFIG_FOO .config
> > 
> >     The grep is to see if the setting worked.  Now I can do:
> > 
> > 	./scripts/kconfig/kconfig set CONFIG_FOO=y
> 
> The second use-case is provided by scripts/config already. It's is a lot
> simpler shell script, but it's maybe good enough for such task.

The scripts/config file doesn't check that the config is valid.  It's
the same as doing "echo CONFIG_FOO=y >> .config" which I was trying to
fix.

regards,
dan carpenter

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFC] kconfig: a new command line tool to set configs Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-26 19:00 +0100

csiph-web