mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-16 11:54:41 +02:00
Add bus type support to the dummy external programmer
The syntax is explained in the man page. Example: flashrom -p dummy=lpc,fwh Tested, works perfectly. ;-) As a nice benefit, it allows easy testing of the "probe only compatible flashes" patch. Corresponding to flashrom svn r559. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
@@ -537,6 +537,8 @@ int main(int argc, char *argv[])
|
||||
programmer = PROGRAMMER_INTERNAL;
|
||||
} else if (strncmp(optarg, "dummy", 5) == 0) {
|
||||
programmer = PROGRAMMER_DUMMY;
|
||||
if (optarg[5] == '=')
|
||||
dummytype = strdup(optarg + 6);
|
||||
} else if (strncmp(optarg, "nic3com", 7) == 0) {
|
||||
programmer = PROGRAMMER_NIC3COM;
|
||||
if (optarg[7] == '=')
|
||||
|
Reference in New Issue
Block a user