From 3504b539bfa33693510d83402a344b1eafd7a592 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Mon, 1 Jun 2009 00:02:11 +0000 Subject: 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 Acked-by: Uwe Hermann --- flashrom.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index 5113a6b..0eb502d 100644 --- a/flashrom.c +++ b/flashrom.c @@ -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] == '=') -- cgit v1.1