Skip to content
Snippets Groups Projects
Commit 2c9c8bf2 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

make: remove dependency from flash to all

* print message when no hex file is found instead
* add objcopy for native so that flash can succeed
parent fce3a224
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,16 @@ distclean:
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTBASE)/pkg/$$i distclean ; done
-@rm -rf $(BINDIRBASE)
flash: all
flash: $(filter all all-%, $(MAKECMDGOALS))
@if [ ! -f $${HEXFILE} ]; then \
echo ""; \
echo ""; \
echo "You need to create a hex file before you can flash it."; \
echo "Unless you know otherwise, 'make all' usually does what you want."; \
echo ""; \
echo ""; \
exit 1; \
fi
$(FLASHER) $(FFLAGS)
term:
......
......@@ -16,7 +16,7 @@ export AR ?= $(PREFIX)ar
export AS ?= $(PREFIX)as
export LINK ?= $(PREFIX)gcc
export SIZE ?= $(PREFIX)size
export OBJCOPY = true
export OBJCOPY = $(PREFIX)objcopy
export DEBUGGER = gdb
export TERMPROG = $(ELF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment