mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-26 01:06:47 +00:00
36597636f2
Some file miss completely the license tag. Add the SPDX tag, using the same GPL-2.0-or-later license of the OpenOCD project. The SPDX tag on files *.c is incorrect, as it should use the C99 single line comment using '//'. But current checkpatch doesn't allow C99 comments, so keep using standard C comments, by now. Change-Id: I24bd362eeb6b74f09aceb9b757d45cbfa4afe334 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7160 Tested-by: jenkins
35 lines
612 B
Makefile
35 lines
612 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
BIN2C = ../../../../src/helper/bin2char.sh
|
|
|
|
CROSS_COMPILE ?= arm-none-eabi-
|
|
|
|
CC=$(CROSS_COMPILE)gcc
|
|
OBJCOPY=$(CROSS_COMPILE)objcopy
|
|
OBJDUMP=$(CROSS_COMPILE)objdump
|
|
|
|
CFLAGS = -static -nostartfiles -mlittle-endian -Wa,-EL
|
|
|
|
all: erase.inc erase_check.inc write.inc
|
|
|
|
.PHONY: clean
|
|
|
|
.INTERMEDIATE: erase.elf erase_check.elf write.elf
|
|
|
|
erase.elf erase_check.elf write.elf: xmc1xxx.S
|
|
|
|
%.elf: %.S
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
%.lst: %.elf
|
|
$(OBJDUMP) -S $< > $@
|
|
|
|
%.bin: %.elf
|
|
$(OBJCOPY) -Obinary $< $@
|
|
|
|
%.inc: %.bin
|
|
$(BIN2C) < $< > $@
|
|
|
|
clean:
|
|
-rm -f *.elf *.lst *.bin *.inc
|