Skip to contentSkip to conversation

kbuild: add numeric --set-val option to scripts/config

PATCH In review Jonas Aaberg 2 participants 2 messages Dec 15, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: add numeric --set-val option to scripts/config

Add new option to scripts/config for changing .config numeric values

---
 scripts/config |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
scripts/config +9 -2
index 608d7fd..5d8e57b 100755
@@ -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
Signature · 1 line
1.6.3.3