Commit f0a6332ce221614fbd0731af92f668892fa4b700

Authored by Jonas Aaberg
Committed by Michal Marek
1 parent d52784eb36

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

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

Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 1 changed file with 9 additions and 2 deletions Side-by-side Diff

... ... @@ -10,8 +10,10 @@
10 10 --enable|-e option Enable option
11 11 --disable|-d option Disable option
12 12 --module|-m option Turn option into a module
13   - --set-str option value
14   - Set option to "value"
  13 + --set-str option string
  14 + Set option to "string"
  15 + --set-val option value
  16 + Set option to value
15 17 --state|-s option Print state of option (n,y,m,undef)
16 18  
17 19 --enable-after|-E beforeopt option
... ... @@ -106,6 +108,11 @@
106 108  
107 109 --set-str)
108 110 set_var "CONFIG_$ARG" "CONFIG_$ARG=\"$1\""
  111 + shift
  112 + ;;
  113 +
  114 + --set-val)
  115 + set_var "CONFIG_$ARG" "CONFIG_$ARG=$1"
109 116 shift
110 117 ;;
111 118