.PHONY: flash_$(1)
flash_$(1): $(OUTDIR)/$(1).hex flash_$(1)_local
$L "$(1): Flashing target"
+ $Q if [ ! -f $$($(1)_FLASH_SCRIPT) ] ; then \
+ printf "No flash script found.\n" ; \
+ exit 1 ; \
+ fi
$Q if [ ! "$$($(1)_PROGRAMMER_TYPE)" == "none" ] ; then \
PROGRAMMER_CPU=$$($(1)_PROGRAMMER_CPU) PROGRAMMER_TYPE=$$($(1)_PROGRAMMER_TYPE) \
PROGRAMMER_PORT=$$($(1)_PROGRAMMER_PORT) IMAGE_FILE=$$< \
else \
printf "No programmer interface configured, see http://dev.bertos.org/wiki/ProgrammerInterface\n" ; \
exit 1 ; \
- fi
+ fi
.PHONY: flash_$(1)_local
flash_$(1)_local:
.PHONY: debug_$(1)
debug_$(1): $(OUTDIR)/$(1).elf
$L "$(1): Debugging target"
+ $Q if [ ! -f $$($(1)_DEBUG_SCRIPT) ] ; then \
+ printf "No debug script found.\n" ; \
+ exit 1 ; \
+ fi
$Q if [ ! "$$($(1)_PROGRAMMER_TYPE)" == "none" ] ; then \
PROGRAMMER_CPU=$$($(1)_PROGRAMMER_CPU) PROGRAMMER_TYPE=$$($(1)_PROGRAMMER_TYPE) \
PROGRAMMER_PORT=$$($(1)_PROGRAMMER_PORT) GDB_PORT=3333 \