From 58888f78f3690e6701a717cdc65562fdf9038e1e Mon Sep 17 00:00:00 2001 From: Alexander Goncharov Date: Sun, 9 Oct 2022 13:10:27 +0300 Subject: util: add bash completion script Add a bash script for the flashrom CLI that auto-completes the command sequence. The script is generated from a template by substituting a list of enabled programmers. It requires an extra `bash-completion` package to work, but, fortunately, it's installed on most systems. Build system changes: meson: provide option `bash_completion` to determine if the script should be installed (depends on option `classic_cli`). makefile: make a list of enabled programmers (by using CONFIG_* variables) to do substitution manually Change-Id: Ie68bc91c3cea4de2ffdbeffd07e48edd8d5590e1 Signed-off-by: Alexander Goncharov Reviewed-on: https://review.coreboot.org/c/flashrom/+/68247 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Anastasia Klimchuk --- meson_options.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index 1990d0a95..9dcebdc81 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,6 +3,7 @@ option('classic_cli_print_wiki', type : 'feature', value : 'disabled', descript option('default_programmer_name', type : 'string', description : 'default programmer') option('default_programmer_args', type : 'string', description : 'default programmer arguments') option('ich_descriptors_tool', type : 'feature', value : 'auto', description : 'Build ich_descriptors_tool') +option('bash_completion', type : 'feature', value : 'auto', description : 'Install bash completion') option('tests', type : 'feature', value : 'auto', description : 'Build unit tests') option('use_internal_dmi', type : 'boolean', value : 'true') option('programmer', type : 'array', value : ['auto'], choices : [ -- cgit v1.2.3