aboutsummaryrefslogtreecommitdiff
path: root/scripts/config
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2009-05-25 16:43:27 +0200
committerSam Ravnborg <sam@ravnborg.org>2009-06-14 22:48:08 +0200
commit1f990cf94559e0a7363d56aade1d5dc6c515b60b (patch)
treeb35e62754b90ffb46295249106c1d2cf6c65b4a5 /scripts/config
parent47312d2cfd9b769c1739738602c163c4c9814c7b (diff)
downloadleg-kernel-1f990cf94559e0a7363d56aade1d5dc6c515b60b.tar.gz
kbuild: add generic --set-str option to scripts/config
Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
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 640c6fe4d644..608d7fdb13e8 100755
--- a/scripts/config
+++ b/scripts/config
@@ -9,8 +9,10 @@ config options command ...
commands:
--enable|-e option Enable option
--disable|-d option Disable option
- --module|-m option Turn option into a module
- --state|-s option Print state of option (n,y,m,undef)
+ --module|-m option Turn option into a module
+ --set-str option value
+ Set option to "value"
+ --state|-s option Print state of option (n,y,m,undef)
--enable-after|-E beforeopt option
Enable option directly after other option
@@ -102,6 +104,11 @@ while [ "$1" != "" ] ; do
set_var "CONFIG_$ARG" "CONFIG_$ARG=m"
;;
+ --set-str)
+ set_var "CONFIG_$ARG" "CONFIG_$ARG=\"$1\""
+ shift
+ ;;
+
--state|-s)
if grep -q "# CONFIG_$ARG is not set" $FN ; then
echo n