# HG changeset patch # User Michael Spacefalcon # Date 1402294201 0 # Node ID 3164604a6c703f53b62a06915bdae557ee6ce5db # Parent d148403013c059f47ce7620772dbc763dffefff9 install compalstage-*.bin and loadagent.srec from target-utils diff -r d148403013c0 -r 3164604a6c70 target-utils/Makefile --- a/target-utils/Makefile Mon Jun 09 05:08:11 2014 +0000 +++ b/target-utils/Makefile Mon Jun 09 06:10:01 2014 +0000 @@ -13,6 +13,9 @@ ${SUBDIR}: FRC cd $@; ${MAKE} ${MFLAGS} +install: FRC + for i in ${FOR_LOADTOOLS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done + clean: FRC rm -f a.out core errs for i in ${SUBDIR}; do \ diff -r d148403013c0 -r 3164604a6c70 target-utils/compalstage/Makefile --- a/target-utils/compalstage/Makefile Mon Jun 09 05:08:11 2014 +0000 +++ b/target-utils/compalstage/Makefile Mon Jun 09 06:10:01 2014 +0000 @@ -1,7 +1,10 @@ CC= arm-elf-gcc OBJCOPY=arm-elf-objcopy -all: compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin +TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin +INSTDIR=/usr/local/share/freecalypso + +all: ${TARGETS} .SUFFIXES: .o .bin @@ -17,6 +20,9 @@ compalstage-thumb.o: compalstage.S ${CC} -DTHUMB_ENTRY -c -o $@ $< +install: + install -c ${TARGETS} ${INSTDIR} + clean: rm -f *.o *errs *core *.bin diff -r d148403013c0 -r 3164604a6c70 target-utils/loadagent/Makefile --- a/target-utils/loadagent/Makefile Mon Jun 09 05:08:11 2014 +0000 +++ b/target-utils/loadagent/Makefile Mon Jun 09 06:10:01 2014 +0000 @@ -4,6 +4,8 @@ LD= arm-elf-ld OBJCOPY=arm-elf-objcopy +INSTDIR=/usr/local/share/freecalypso + PROG= loadagent OBJS= crt0.o cmdtab.o main.o mygetchar.o LIBS= ../libcommon/libcommon.a ../libload/libload.a ../libprintf/libprintf.a @@ -25,6 +27,9 @@ ${PROG}.srec: ${PROG}.elf ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ +install: + install -c ${PROG}.srec ${INSTDIR} + clean: rm -f *.o *errs *core *.elf *.bin *.srec crt0.S