Skip to content

Commit

Permalink
kbuild: add numeric --set-val option to scripts/config
Browse files Browse the repository at this point in the history
Add new option to scripts/config for changing .config numeric values

Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jonas Aaberg <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
Jonas Aaberg authored and michal42 committed Dec 15, 2010
1 parent d52784e commit f0a6332
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f0a6332

Please sign in to comment.