diff options
author | Edward O'Callaghan <quasisec@chromium.org> | 2019-09-23 22:46:12 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2019-10-04 10:43:50 +0000 |
commit | 0cd11d8919c66351b9508f58ca0a7f7aaad6dd59 (patch) | |
tree | 4034df1770ba21ccc57c9af8249e275cf2ea7352 /flashrom.8.tmpl | |
parent | ca598dabc3e658b3b80fd41143417d884d436e06 (diff) | |
download | flashrom-0cd11d8919c66351b9508f58ca0a7f7aaad6dd59.tar.gz flashrom-0cd11d8919c66351b9508f58ca0a7f7aaad6dd59.tar.bz2 flashrom-0cd11d8919c66351b9508f58ca0a7f7aaad6dd59.zip |
cli_classic: Add convenient '--flash-name' cli opt
We have this in the ChromiumOS fork of flashrom which we rely
on to obtain the current flash chip in use. This ports it for
upstream consumption.
V.2: Constrain number_of_operations to one as per Nico's comment.
V.3: Move two goto's outside inner if-else block.
V.4: Add missing --help line.
V.5: Add man page entry.
v.6: Use printf() directly.
Change-Id: I23d574a2f8eaf809a5c0524490db9e3a560ede56
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/35591
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'flashrom.8.tmpl')
-rw-r--r-- | flashrom.8.tmpl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/flashrom.8.tmpl b/flashrom.8.tmpl index 30dc97d1..7002c723 100644 --- a/flashrom.8.tmpl +++ b/flashrom.8.tmpl @@ -44,10 +44,12 @@ .SH NAME flashrom \- detect, read, write, verify and erase flash chips .SH SYNOPSIS -.B flashrom \fR[\fB\-h\fR|\fB\-R\fR|\fB\-L\fR|\fB\-z\fR|\fB\-p\fR <programmername>[:<parameters>] - [\fB\-E\fR|\fB\-r\fR <file>|\fB\-w\fR <file>|\fB\-v\fR <file>] [\fB\-c\fR <chipname>] - [(\fB\-l\fR <file>|\fB\-\-ifd|\fB \-\-fmap\fR|\fB\-\-fmap-file\fR <file>) [\fB\-i\fR <image>]] - [\fB\-n\fR] [\fB\-N\fR] [\fB\-f\fR]] +.B flashrom \fR[\fB\-h\fR|\fB\-R\fR|\fB\-L\fR|\fB\-z\fR| + \fB\-p\fR <programmername>[:<parameters>] [\fB\-c\fR <chipname>] + (\fB\-\-flash\-name\fR| + [\fB\-E\fR|\fB\-r\fR <file>|\fB\-w\fR <file>|\fB\-v\fR <file>] + [(\fB\-l\fR <file>|\fB\-\-ifd|\fB \-\-fmap\fR|\fB\-\-fmap-file\fR <file>) [\fB\-i\fR <image>]] + [\fB\-n\fR] [\fB\-N\fR] [\fB\-f\fR])] [\fB\-V\fR[\fBV\fR[\fBV\fR]]] [\fB-o\fR <logfile>] .SH DESCRIPTION .B flashrom @@ -242,6 +244,9 @@ Only flash region/image .B <imagename> from flash layout. .TP +.B "\-\-flash\-name" +Prints out the detected flash chips name. +.TP .B "\-L, \-\-list\-supported" List the flash chips, chipsets, mainboards, and external programmers (including PCI, USB, parallel port, and serial port based devices) @@ -1335,6 +1340,8 @@ David Hendricks .br Dominik Geyer .br +Edward O'Callaghan +.br Eric Biederman .br Giampiero Giancipoli |