diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-01 00:02:11 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-01 00:02:11 +0000 |
commit | 526ee2e8dd3cfd4771f808137287fc041ddee46e (patch) | |
tree | 188831bf4243fd81eb83eb983a06731d21021529 /flashrom.c | |
parent | 264c01e7946146858bbb768ec6856233dcaa832a (diff) | |
download | flashrom-526ee2e8dd3cfd4771f808137287fc041ddee46e.zip flashrom-526ee2e8dd3cfd4771f808137287fc041ddee46e.tar.gz |
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>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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] == '=') |