Skip to content

Commit

Permalink
kbuild: add generic --set-str option to scripts/config
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
michal42 authored and sravnborg committed Jun 14, 2009
1 parent 47312d2 commit 1f990cf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/config
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f990cf

Please sign in to comment.