public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Michal Marek <mmarek@suse.cz>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] kconfig: a new command line tool to set configs
Date: Mon, 25 Jan 2016 11:57:20 +0300	[thread overview]
Message-ID: <20160125085720.GB5273@mwanda> (raw)
In-Reply-To: <557ECB52.2060402@suse.cz>

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


      reply	other threads:[~2016-01-26 18:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 10:31 [RFC] kconfig: a new command line tool to set configs Dan Carpenter
2015-06-15 12:55 ` Michal Marek
2016-01-25  8:57   ` Dan Carpenter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160125085720.GB5273@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox