FreeCalypso > hg > freecalypso-sw
diff loadtools/clmain.c @ 45:16315ed6401a
init-script logic implemented in fc-xram
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 17 Jun 2013 08:15:30 +0000 |
| parents | 5da0cbee2b89 |
| children | 604648026e9c |
line wrap: on
line diff
--- a/loadtools/clmain.c Mon Jun 17 07:32:29 2013 +0000 +++ b/loadtools/clmain.c Mon Jun 17 08:15:30 2013 +0000 @@ -14,6 +14,7 @@ extern struct srecreader iramimage; extern char default_loadagent_image[]; extern struct srecreader xramimage; +extern char hw_init_script[]; main(argc, argv) char **argv; @@ -54,7 +55,12 @@ /* loadagent should be running now */ if (tpinterf_pass_output(1) < 0) exit(1); - /* hw_init_script execution will go here */ + if (hw_init_script[0]) { + printf("Executing init script %s\n", hw_init_script); + c = exec_init_script(hw_init_script); + if (c) + exit(1); + } printf("Sending XRAM image to loadagent\n"); perform_chain_load(); tty_passthru();
