view target-utils/flash-boot-wa/Makefile @ 805:a43c5dc251dc

doc/User-phone-tools: new sms-pdu-decode backslash escapes
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Mar 2021 05:10:43 +0000
parents b81176fe68a7
children
line wrap: on
line source

CC=	arm-elf-gcc
CFLAGS=	-Os -fno-builtin
CPPFLAGS=-I../include
LD=	arm-elf-ld
OBJCOPY=arm-elf-objcopy

INSTDIR=/opt/freecalypso/target-bin

PROG=	flash-boot-wa
LDS=	../env/iram.lds

all:	${PROG}.srec

${PROG}.elf:	${PROG}.o ${LDS}
	${LD} -N --defsym Base_addr=0x820000 -T ${LDS} -o $@ ${PROG}.o

${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

FRC: