[PATCH 3/3] kbuild: add generic --set-str option to scripts/config

From: Michal Marek
Date: Mon May 25 2009 - 10:44:10 EST


Signed-off-by: Michal Marek <mmarek@xxxxxxx>
---
scripts/config | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/scripts/config b/scripts/config
index d3576e5..b4e56c9 100755
--- a/scripts/config
+++ b/scripts/config
@@ -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
@@ -112,6 +114,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
--
1.6.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/