change output filename to BOARD-Directory

This commit is contained in:
hathach
2021-01-26 12:46:24 +07:00
parent 0e585570a3
commit 4a0f5cbd63
57 changed files with 96 additions and 77 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ LD_FILE = $(BOARD_PATH)/samd21g18a_flash.ld
JLINK_DEVICE = ATSAMD21G18
# flash using dfu-util
flash: $(BUILD)/$(BOARD)-firmware.bin
flash: $(BUILD)/$(PROJECT).bin
dfu-util -a 0 -d 1d50:615c -D $< || dfu-util -a 0 -d 16d0:05a5 -D $<
+1 -1
View File
@@ -41,6 +41,6 @@ FREERTOS_PORT = ARM_CM0
# Add it to your PATH or change BOSSAC variable to match your installation
BOSSAC = bossac
flash-bossac: $(BUILD)/$(BOARD)-firmware.bin
flash-bossac: $(BUILD)/$(PROJECT).bin
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
$(BOSSAC) --port=$(SERIAL) -U -i --offset=0x2000 -e -w $^ -R