From: Denis Mukhin <dmukhin@ford.com>
Add alias -y ("yes") to --enable and -n ("no") to --disable a Kconfig
option for better scripting experience.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
xen/scripts/config | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/scripts/config b/xen/scripts/config
index 1050812aae8d..1ede964320cf 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"
;;
--
2.52.0
On 16.01.2026 05:34, dmukhin@xen.org wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Add alias -y ("yes") to --enable and -n ("no") to --disable a Kconfig
> option for better scripting experience.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Seeing this has been ack-ed as-is, I'd like to put on record that I don't
think we should be adding extensions like this. If such is wanted and
deemed generally useful, it can surely go to the Linux original first.
Jan
On Thu, 15 Jan 2026, dmukhin@xen.org wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Add alias -y ("yes") to --enable and -n ("no") to --disable a Kconfig
> option for better scripting experience.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> xen/scripts/config | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/xen/scripts/config b/xen/scripts/config
> index 1050812aae8d..1ede964320cf 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"
> ;;
>
> --
> 2.52.0
>
© 2016 - 2026 Red Hat, Inc.