FreeCalypso > hg > freecalypso-tools
view target-utils/compalstage/Makefile @ 1011:6d9b10633f10
etmsync Pirelli IMEI retrieval: fix poor use of printf()
Bug reported by Vadim Yanitskiy <fixeria@osmocom.org>: the construct
where a static-allocated string was passed to printf() without any
format arguments causes newer compilers to report a security problem.
Given that formatted output is not needed here, just fixed string
output, change printf() to fputs(), and direct the error message
to stderr while at it.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 23 May 2024 17:29:57 +0000 |
parents | 2c9ea966edb9 |
children |
line wrap: on
line source
CC= arm-elf-gcc OBJCOPY=arm-elf-objcopy TARGETS=compalstage-plain.bin compalstage-thumb.bin compalstage-1003.bin \ compalstage-1004.bin INSTDIR=/opt/freecalypso/target-bin all: ${TARGETS} .SUFFIXES: .o .bin .o.bin: ${OBJCOPY} -O binary $< $@ compalstage-1003.o: compalstage.S ${CC} -DPAD_TO_1003 -c -o $@ $< compalstage-1004.o: compalstage.S ${CC} -DPAD_TO_1003 -DMAGIC_1004 -c -o $@ $< compalstage-plain.o: compalstage.S ${CC} -c -o $@ $< compalstage-thumb.o: compalstage.S ${CC} -DTHUMB_ENTRY -c -o $@ $< install: mkdir -p ${INSTDIR} install -c -m 644 ${TARGETS} ${INSTDIR} clean: rm -f *.o *errs *core *.bin FRC: