summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2012-05-20 03:39:04 +0000
committerChristian Pointner <equinox@mur.at>2012-05-20 03:39:04 +0000
commit4eb4b1ad28810da9c5f0891a876329bc7dd2bfe6 (patch)
tree4a04c2c3abb8a60337ad3c64b782034a1c4ba0e5 /software
parentautoreset on flash :) (diff)
gracefully ignore nonexisting or nonexecutable reset_func
git-svn-id: https://svn.spreadspace.org/mur.sat@455 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software')
-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