summary refs log tree commit diff
path: root/scripts/config
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2010-12-15 08:37:00 +0100
committerMichal Marek <mmarek@suse.cz>2010-12-15 15:44:31 +0100
commitf0a6332ce221614fbd0731af92f668892fa4b700 (patch)
treec56db47c6b2cb222450ed7c82ca042112bbe6220 /scripts/config
parentd52784eb3607bf887628742f99041b4f18d7d1de (diff)
downloadlinux-f0a6332ce221614fbd0731af92f668892fa4b700.tar.gz
kbuild: add numeric --set-val option to scripts/config
Add new option to scripts/config for changing .config numeric values

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/config')
-rwxr-xr-xscripts/config11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/config b/scripts/config
index dfd4732f7099..a7c7c4b8e957 100755
--- a/scripts/config
+++ b/scripts/config
@@ -10,8 +10,10 @@ commands:
 	--enable|-e option   Enable option
 	--disable|-d option  Disable option
 	--module|-m option   Turn option into a module
-	--set-str option value
-	                     Set option to "value"
+	--set-str option string
+	                     Set option to "string"
+	--set-val option value
+	                     Set option to value
 	--state|-s option    Print state of option (n,y,m,undef)
 
 	--enable-after|-E beforeopt option
@@ -109,6 +111,11 @@ while [ "$1" != "" ] ; do
 		shift
 		;;
 
+	--set-val)
+		set_var "CONFIG_$ARG" "CONFIG_$ARG=$1"
+		shift
+		;;
+
 	--state|-s)
 		if grep -q "# CONFIG_$ARG is not set" $FN ; then
 			echo n