mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 22:43:17 +02:00
cli_classic: Add convenient '--{flash,get}-size' 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: Rename '--get-size' to '--flash-size' however keep old arg as 'undocumented' for back-compat. V.4: Add missing --help line. V.5: Add man page entry. V.6: Use printf() directly. Change-Id: I8f002f3b2012aec4d26b0e81456697b9a5de28d6 Signed-off-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/35592 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
@ -46,7 +46,7 @@ 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\-c\fR <chipname>]
|
||||
(\fB\-\-flash\-name\fR|
|
||||
(\fB\-\-flash\-name\fR|\fB\-\-flash\-size\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])]
|
||||
@ -247,6 +247,9 @@ from flash layout.
|
||||
.B "\-\-flash\-name"
|
||||
Prints out the detected flash chips name.
|
||||
.TP
|
||||
.B "\-\-flash\-size"
|
||||
Prints out the detected flash chips size.
|
||||
.TP
|
||||
.B "\-L, \-\-list\-supported"
|
||||
List the flash chips, chipsets, mainboards, and external programmers
|
||||
(including PCI, USB, parallel port, and serial port based devices)
|
||||
|
Reference in New Issue
Block a user