提交 1f990cf9 编写于 作者: M Michal Marek 提交者: Sam Ravnborg

kbuild: add generic --set-str option to scripts/config

Signed-off-by: NMichal Marek <mmarek@suse.cz>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 47312d2c
...@@ -9,8 +9,10 @@ config options command ... ...@@ -9,8 +9,10 @@ config options command ...
commands: 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
--state|-s option Print state of option (n,y,m,undef) --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-after|-E beforeopt option
Enable option directly after other option Enable option directly after other option
...@@ -102,6 +104,11 @@ while [ "$1" != "" ] ; do ...@@ -102,6 +104,11 @@ while [ "$1" != "" ] ; do
set_var "CONFIG_$ARG" "CONFIG_$ARG=m" set_var "CONFIG_$ARG" "CONFIG_$ARG=m"
;; ;;
--set-str)
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册