mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-18 22:42:25 +10:00
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
24 lines
486 B
Makefile
24 lines
486 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
BIN2C = ../../../src/helper/bin2char.sh
|
|
|
|
ARM_CROSS_COMPILE ?= arm-none-eabi-
|
|
ARM_AS ?= $(ARM_CROSS_COMPILE)as
|
|
ARM_OBJCOPY ?= $(ARM_CROSS_COMPILE)objcopy
|
|
|
|
ARM_AFLAGS = -EL -mthumb
|
|
|
|
arm: armv7m_kinetis_wdog.inc armv7m_kinetis_wdog32.inc
|
|
|
|
armv7m_%.elf: armv7m_%.s
|
|
$(ARM_AS) $(ARM_AFLAGS) $< -o $@
|
|
|
|
armv7m_%.bin: armv7m_%.elf
|
|
$(ARM_OBJCOPY) -Obinary $< $@
|
|
|
|
armv7m_%.inc: armv7m_%.bin
|
|
$(BIN2C) < $< > $@
|
|
|
|
clean:
|
|
-rm -f *.elf *.bin *.inc
|