# HG changeset patch
# User Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
# Date 1402349507 0
# Node ID 837ba1b4747838f2d34c74c144ccdfccfb0a5625
# Parent  5e0e9bb2606047f5265cbcb69f878f5764f04520
fc-xram: compalstage support hooked in

diff -r 5e0e9bb26060 -r 837ba1b47478 loadtools/clmain.c
--- a/loadtools/clmain.c	Mon Jun 09 21:20:10 2014 +0000
+++ b/loadtools/clmain.c	Mon Jun 09 21:31:47 2014 +0000
@@ -37,7 +37,7 @@
 	int c;
 	struct baudrate *br;
 
-	while ((c = getopt(argc, argv, "+a:b:B:h:H:i:nr:")) != EOF)
+	while ((c = getopt(argc, argv, "+a:b:B:c:C:h:H:i:nr:")) != EOF)
 		switch (c) {
 		case 'a':
 			iramimage.filename = optarg;
@@ -51,6 +51,12 @@
 				exit(1);	/* error msg already printed */
 			xram_load_baudrate = br;
 			continue;
+		case 'c':
+			set_compalstage_short(optarg);
+			continue;
+		case 'C':
+			set_compalstage_fullpath(optarg);
+			continue;
 		case 'h':
 			read_hwparam_file_shortname(optarg);
 			continue;
@@ -87,6 +93,7 @@
 	}
 
 	open_target_serial();
+	perform_compal_stage(1);
 	perform_romload();
 	/* loadagent should be running now */
 	if (tpinterf_pass_output(1) < 0)