changeset 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 7b3fd0e2a352
children 837ba1b47478
files loadtools/ltmain.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
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)