kbuild: add generic --set-str option to scripts/config
authorMichal Marek <mmarek@suse.cz>
Mon, 25 May 2009 14:43:27 +0000 (16:43 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 14 Jun 2009 20:48:08 +0000 (22:48 +0200)
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/config

index 640c6fe4d644ab6e1e0ae7c815b9096266a9a413..608d7fdb13e8d6ac901eaf99cc3b1b5df0a7cc95 100755 (executable)
@@ -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