22 lines
345 B
Makefile
22 lines
345 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
BIN2C = ../../../../src/helper/bin2char.sh
|
|
|
|
CROSS_COMPILE ?= arm-none-eabi-
|
|
AS = $(CROSS_COMPILE)as
|
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
|
|
|
all: kinetis_flash.inc
|
|
|
|
%.elf: %.s
|
|
$(AS) $< -o $@
|
|
|
|
%.bin: %.elf
|
|
$(OBJCOPY) -Obinary $< $@
|
|
|
|
%.inc: %.bin
|
|
$(BIN2C) < $< > $@
|
|
|
|
clean:
|
|
-rm -f *.elf *.bin *.inc
|