Makefile: app_run is meaningful only for device platform

This commit is contained in:
Émilie Feral
2017-08-30 14:35:44 +02:00
parent 16dccc3aa5
commit 2ff9aa2f88
2 changed files with 5 additions and 4 deletions

View File

@@ -6,5 +6,10 @@ endif
USE_LIBA = 1
EXE = elf
.PHONY: %_run
%_run: %.$(EXE)
$(GDB) -x gdb_script.gdb $<
.PHONY: %_flash
%_flash: %.bin
dfu-util -i 0 -a 0 -s 0x08000000:leave -D $<