|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] scripts/config: add -y|-n flags
commit 74bcaa9283796b97922310258f2cf77c422d1992
Author: Denis Mukhin <dmukhin@xxxxxxxx>
AuthorDate: Thu Jan 15 20:34:57 2026 -0800
Commit: Stefano Stabellini <stefano.stabellini@xxxxxxx>
CommitDate: Wed Feb 4 15:42:23 2026 -0800
scripts/config: add -y|-n flags
Add alias -y ("yes") to --enable and -n ("no") to --disable a Kconfig
option for better scripting experience.
Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
xen/scripts/config | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/scripts/config b/xen/scripts/config
index 1050812aae..1ede964320 100755
--- a/xen/scripts/config
+++ b/xen/scripts/config
@@ -16,8 +16,8 @@ Manipulate options in a .config file from the command line.
Usage:
$myname options command ...
commands:
- --enable|-e option Enable option
- --disable|-d option Disable option
+ --enable|-e|-y|--yes option Enable option
+ --disable|-d|-n|--no option Disable option
--set-str option string
Set option to "string"
--set-val option value
@@ -166,11 +166,11 @@ while [ "$1" != "" ] ; do
;;
esac
case "$CMD" in
- --enable|-e)
+ --enable|-e|-y|--yes)
set_var "${CONFIG_}$ARG" "${CONFIG_}$ARG=y"
;;
- --disable|-d)
+ --disable|-d|-n|--no)
set_var "${CONFIG_}$ARG" "# ${CONFIG_}$ARG is not set"
;;
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |