changeset 202:b81176fe68a7

target-utils/flash-boot-wa/Makefile: install added
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 01 May 2017 21:17:05 +0000
parents 59de85ae94a7
children f2dde45ba378
files target-utils/flash-boot-wa/Makefile
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/target-utils/flash-boot-wa/Makefile	Mon May 01 21:02:58 2017 +0000
+++ b/target-utils/flash-boot-wa/Makefile	Mon May 01 21:17:05 2017 +0000
@@ -4,6 +4,8 @@
 LD=	arm-elf-ld
 OBJCOPY=arm-elf-objcopy
 
+INSTDIR=/opt/freecalypso/target-bin
+
 PROG=	flash-boot-wa
 LDS=	../env/iram.lds
 
@@ -15,6 +17,10 @@
 ${PROG}.srec:	${PROG}.elf
 	${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
 
+install:
+	mkdir -p ${INSTDIR}
+	install -c -m 644 ${PROG}.srec ${INSTDIR}
+
 clean:
 	rm -f *.o *errs *core *.elf *.bin *.srec