From: Andi Kleen Date: Sat, 3 Jan 2009 02:21:41 +0000 (+0100) Subject: kconfig: add script to manipulate .config files on the command line X-Git-Tag: v2.6.29-rc1~185^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8e54701ea85b0ab0971637825a628f5aa2b678a4;p=linux-2.6-omap-h63xx.git kconfig: add script to manipulate .config files on the command line 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 Signed-off-by: Sam Ravnborg --- diff --git a/scripts/config b/scripts/config new file mode 100755 index 00000000000..68b9761cdc3 --- /dev/null +++ b/scripts/config @@ -0,0 +1,150 @@ +#!/bin/bash +# Manipulate options in a .config file from the command line + +usage() { + cat >&2 <