Commit f0a6332c authored by Jonas Aaberg's avatar Jonas Aaberg Committed by Michal Marek

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

Add new option to scripts/config for changing .config numeric values
Acked-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
Signed-off-by: default avatarJonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent d52784eb
...@@ -10,8 +10,10 @@ commands: ...@@ -10,8 +10,10 @@ commands:
--enable|-e option Enable option --enable|-e option Enable option
--disable|-d option Disable option --disable|-d option Disable option
--module|-m option Turn option into a module --module|-m option Turn option into a module
--set-str option value --set-str option string
Set option to "value" Set option to "string"
--set-val option value
Set option to value
--state|-s option Print state of option (n,y,m,undef) --state|-s option Print state of option (n,y,m,undef)
--enable-after|-E beforeopt option --enable-after|-E beforeopt option
...@@ -109,6 +111,11 @@ while [ "$1" != "" ] ; do ...@@ -109,6 +111,11 @@ while [ "$1" != "" ] ; do
shift shift
;; ;;
--set-val)
set_var "CONFIG_$ARG" "CONFIG_$ARG=$1"
shift
;;
--state|-s) --state|-s)
if grep -q "# CONFIG_$ARG is not set" $FN ; then if grep -q "# CONFIG_$ARG is not set" $FN ; then
echo n echo n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment