UPSTREAM: 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
(cherry picked from commit 58888f78f3690e6701a717cdc65562fdf9038e1e)
Original-Change-Id: Ie68bc91c3cea4de2ffdbeffd07e48edd8d5590e1
Original-Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/68247
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
GitOrigin-RevId: 58888f78f3690e6701a717cdc65562fdf9038e1e
Change-Id: I5897866a9d4bb364ab83f948ae6284084e09dd2f
Signed-off-by: CopyBot <copybot.service@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/4178520
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
5 files changed