linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Andi Kleen <andi@firstfloor.org>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [1/3] KBUILD: Add script to manipulate .config files on the command line
Date: Wed, 7 Jan 2009 21:18:49 +0100	[thread overview]
Message-ID: <20090107201849.GH4647@uranus.ravnborg.org> (raw)
In-Reply-To: <20090103321.351399938@firstfloor.org>

On Sat, Jan 03, 2009 at 03:21:41AM +0100, Andi Kleen wrote:
> 
> I often change single options in .config files. Instead of using
> an editor or one of the frontends it's convenient to do this from
> the command line. It's also useful to do from automated build scripts
> when building different variants from a base config file.
> 
> I extracted most of the CONFIG manipulation code from one of my
> build scripts into a new shell script scripts/config
> 
> The script is not integrated with the normal Kconfig machinery
> and doesn't do any checking against Kconfig files, but just manipulates
> that text format. This is always done at make time anyways.
> 
> I believe this script would be a useful standard addition for scripts/*
> 
> Sample usage:
> 
> ./scripts/config --disable smp 
> Disable SMP in .config file
> 
> ./scripts/config --file otherdir/.config --module e1000e
> Enable E1000E as module in otherdir/.config
> 
> ./scripts/config --state smp
> y 
> Check state of config option CONFIG_SMP
> 
> After merging into git please make scripts/config executable
> 
> Signed-off-by: Andi Kleen <ak@linux.intel.com>

When I try to run the script with no arguments nothing happens!?!

I will merge as is but please followup with a patch so it prints out usage
in this situation.

	Sam

  parent reply	other threads:[~2009-01-07 20:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-03  2:21 [PATCH] [1/3] KBUILD: Add script to manipulate .config files on the command line Andi Kleen
2009-01-03  2:21 ` [PATCH] [2/3] KBUILD: Add a symlink to the source for separate objdirs Andi Kleen
2009-01-07 20:29   ` Sam Ravnborg
2009-01-03  2:21 ` [PATCH] [3/3] KBUILD: Add a "bin" symlink for the scripts directory too Andi Kleen
2009-01-07 20:27   ` Sam Ravnborg
2009-01-07 21:30     ` Andi Kleen
2009-01-07 21:36       ` Sam Ravnborg
2009-01-03 10:54 ` [PATCH] [1/3] KBUILD: Add script to manipulate .config files on the command line Arnd Bergmann
2009-01-03 17:12   ` Andi Kleen
2009-01-07 20:18 ` Sam Ravnborg [this message]
2009-01-07 21:33   ` Andi Kleen
2009-01-07 22:07     ` Sam Ravnborg

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=20090107201849.GH4647@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=andi@firstfloor.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).