FreeCalypso > hg > freecalypso-sw
diff loadtools/ltmain.c @ 380:5e0e9bb26060
fc-loadtool: compalstage support hooked in
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 09 Jun 2014 21:20:10 +0000 |
parents | ccc5161848c7 |
children | 833e8fa93330 |
line wrap: on
line diff
--- a/loadtools/ltmain.c Mon Jun 09 21:07:39 2014 +0000 +++ b/loadtools/ltmain.c Mon Jun 09 21:20:10 2014 +0000 @@ -24,7 +24,7 @@ int c; char command[512]; - while ((c = getopt(argc, argv, "a:b:h:H:i:n")) != EOF) + while ((c = getopt(argc, argv, "a:b:c:C:h:H:i:n")) != EOF) switch (c) { case 'a': iramimage.filename = optarg; @@ -32,6 +32,12 @@ case 'b': set_romload_baudrate(optarg); continue; + case 'c': + set_compalstage_short(optarg); + continue; + case 'C': + set_compalstage_fullpath(optarg); + continue; case 'h': read_hwparam_file_shortname(optarg); continue; @@ -57,6 +63,7 @@ iramimage.filename = default_loadagent_image; open_target_serial(); + perform_compal_stage(1); perform_romload(); putchar('\n'); if (tpinterf_pass_output(1) < 0)