mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Makefile: app_run is meaningful only for device platform
This commit is contained in:
4
Makefile
4
Makefile
@@ -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)
|
||||
|
||||
@@ -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 $<
|
||||
|
||||
Reference in New Issue
Block a user