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

@@ -95,10 +95,6 @@ products += $(dependencies)
@$(SIZE) $< | tail -n 1 | awk '{print "Code: " $$1 " bytes";print "Data: " $$2 " bytes"; print "Total: " int(($$1+$$2)/1024) " kB (" $$1 + $$2 " bytes)";}'
@echo "==============================="
.PHONY: %_run
%_run: %.$(EXE)
$(GDB) -x gdb_script.gdb $<
ifdef OBJCOPY
products += $(products:.$(EXE)=.hex) $(products:.$(EXE)=.bin)
%.hex: %.$(EXE)

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 $<