summaryrefslogtreecommitdiffstats
path: root/internal.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-01-04 00:48:27 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-01-04 00:48:27 +0000
commit2d927fbd7bbfd6d03280757d447991a60c690c6e (patch)
tree7f14a4305d587d4ff56c1b3f764a9016dba5d03b /internal.c
parent9bcf2684d7781de71551ab14d3c3be46890ca432 (diff)
downloadast2050-flashrom-2d927fbd7bbfd6d03280757d447991a60c690c6e.zip
ast2050-flashrom-2d927fbd7bbfd6d03280757d447991a60c690c6e.tar.gz
Replace --mainboard with -p internal:mainboard
NOTE: The --list-supported-wiki output changed to use -p internal:mainboard= instead of -m The --list-supported output changed the heading of the mainboard list from Vendor Board Status Required option to Vendor Board Status Required value for -p internal:mainboard= Fix lb_vendor_dev_from_string() not to write to the supplied string. Corresponding to flashrom svn r1483. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'internal.c')
-rw-r--r--internal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal.c b/internal.c
index 386b842..5716e64 100644
--- a/internal.c
+++ b/internal.c
@@ -213,6 +213,16 @@ int internal_init(void)
}
free(arg);
+ arg = extract_programmer_param("mainboard");
+ if (arg && strlen(arg)) {
+ lb_vendor_dev_from_string(arg);
+ } else if (arg && !strlen(arg)) {
+ msg_perr("Missing argument for mainboard.\n");
+ free(arg);
+ return 1;
+ }
+ free(arg);
+
get_io_perms();
if (register_shutdown(internal_shutdown, NULL))
return 1;
OpenPOWER on IntegriCloud