changeset 44:b77005f6d315

loadtools: migration to /opt/freecalypso
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 05:55:04 +0000
parents 647a7bdba4be
children 4368f76e3d56
files loadtools/Makefile loadtools/compalload.c loadtools/defpath.c
diffstat 3 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/Makefile	Wed Oct 26 05:40:33 2016 +0000
+++ b/loadtools/Makefile	Wed Oct 26 05:55:04 2016 +0000
@@ -1,7 +1,9 @@
 CC=	gcc
 CFLAGS=	-O2
 PROGS=	fc-iram fc-loadtool fc-xram fc-compalram
-INSTBIN=/usr/local/bin
+INSTBIN=/opt/freecalypso/bin
+INSTCONF=/opt/freecalypso/loadtools
+INSTHELP=/opt/freecalypso/helpfiles
 
 EXTRA_OBJ=	compalload.o
 
@@ -37,7 +39,10 @@
 install:
 	mkdir -p ${INSTBIN}
 	install -c ${PROGS} ${INSTBIN}
-	./install-helpers.sh
+	mkdir -p ${INSTCONF}
+	install -c -m 644 scripts/* ${INSTCONF}
+	mkdir -p ${INSTHELP}
+	install -c -m 644 loadtool.help ${INSTHELP}
 
 clean:
 	rm -f *.o *.out *errs ${PROGS}
--- a/loadtools/compalload.c	Wed Oct 26 05:40:33 2016 +0000
+++ b/loadtools/compalload.c	Wed Oct 26 05:55:04 2016 +0000
@@ -16,7 +16,7 @@
 #include <termios.h>
 #include <unistd.h>
 
-extern char default_helpers_dir[];
+extern char default_compalstage_dir[];
 extern char *target_ttydev;
 extern int target_fd;
 extern struct termios target_termios;
@@ -33,7 +33,7 @@
 {
 	if (strcmp(arg, "none"))
 		sprintf(compalstage_pathname, "%s/compalstage-%s.bin",
-			default_helpers_dir, arg);
+			default_compalstage_dir, arg);
 	else
 		compalstage_pathname[0] = 0;
 }
--- a/loadtools/defpath.c	Wed Oct 26 05:40:33 2016 +0000
+++ b/loadtools/defpath.c	Wed Oct 26 05:55:04 2016 +0000
@@ -4,6 +4,7 @@
  * command line operations more manageable.
  */
 
-char default_helpers_dir[] = "/usr/local/share/freecalypso";
-char default_loadagent_image[] = "/usr/local/share/freecalypso/loadagent.srec";
-char loadtool_help_file[] = "/usr/local/share/freecalypso/loadtool.help";
+char default_helpers_dir[] = "/opt/freecalypso/loadtools";
+char default_compalstage_dir[] = "/opt/freecalypso/target-bin";
+char default_loadagent_image[] = "/opt/freecalypso/target-bin/loadagent.srec";
+char loadtool_help_file[] = "/opt/freecalypso/helpfiles/loadtool.help";