comparison target-utils/flash-boot-wa/Makefile @ 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
comparison
equal deleted inserted replaced
201:59de85ae94a7 202:b81176fe68a7
1 CC= arm-elf-gcc 1 CC= arm-elf-gcc
2 CFLAGS= -Os -fno-builtin 2 CFLAGS= -Os -fno-builtin
3 CPPFLAGS=-I../include 3 CPPFLAGS=-I../include
4 LD= arm-elf-ld 4 LD= arm-elf-ld
5 OBJCOPY=arm-elf-objcopy 5 OBJCOPY=arm-elf-objcopy
6
7 INSTDIR=/opt/freecalypso/target-bin
6 8
7 PROG= flash-boot-wa 9 PROG= flash-boot-wa
8 LDS= ../env/iram.lds 10 LDS= ../env/iram.lds
9 11
10 all: ${PROG}.srec 12 all: ${PROG}.srec
13 ${LD} -N --defsym Base_addr=0x820000 -T ${LDS} -o $@ ${PROG}.o 15 ${LD} -N --defsym Base_addr=0x820000 -T ${LDS} -o $@ ${PROG}.o
14 16
15 ${PROG}.srec: ${PROG}.elf 17 ${PROG}.srec: ${PROG}.elf
16 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ 18 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
17 19
20 install:
21 mkdir -p ${INSTDIR}
22 install -c -m 644 ${PROG}.srec ${INSTDIR}
23
18 clean: 24 clean:
19 rm -f *.o *errs *core *.elf *.bin *.srec 25 rm -f *.o *errs *core *.elf *.bin *.srec
20 26
21 FRC: 27 FRC: