summaryrefslogtreecommitdiff
path: root/software/avr.include.mk
diff options
context:
space:
mode:
Diffstat (limited to 'software/avr.include.mk')
-rw-r--r--software/avr.include.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/software/avr.include.mk b/software/avr.include.mk
index ca126b4..8542449 100644
--- a/software/avr.include.mk
+++ b/software/avr.include.mk
@@ -166,4 +166,10 @@ run:
$(call $(PROG)/$@,)
reset:
- @$(RESET_FUNC)
+ @if [ -n "$(RESET_FUNC)" ]; then \
+ if [ -x "$(RESET_FUNC)" ]; then \
+ "$(RESET_FUNC)"; \
+ else \
+ echo "WARNING: ignoring non-existing or non-executable reset script"; \
+ fi \
+ fi