projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4124534
)
Add emergency aborts to the recursive makefiles to prevent system failures due to...
author
Dean Camera
<dean@fourwalledcubicle.com>
Mon, 4 Jun 2012 15:38:05 +0000
(15:38 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Mon, 4 Jun 2012 15:38:05 +0000
(15:38 +0000)
Bootloaders/makefile
patch
|
blob
|
blame
|
history
Demos/Device/ClassDriver/makefile
patch
|
blob
|
blame
|
history
Demos/Device/LowLevel/makefile
patch
|
blob
|
blame
|
history
Demos/DualRole/ClassDriver/makefile
patch
|
blob
|
blame
|
history
Demos/Host/ClassDriver/makefile
patch
|
blob
|
blame
|
history
Demos/Host/LowLevel/makefile
patch
|
blob
|
blame
|
history
Projects/makefile
patch
|
blob
|
blame
|
history
diff --git
a/Bootloaders/makefile
b/Bootloaders/makefile
index
94147ea
..
56db658
100644
(file)
--- a/
Bootloaders/makefile
+++ b/
Bootloaders/makefile
@@
-15,6
+15,13
@@
PROJECT_DIRECTORIES = $(shell ls -d *)
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
diff --git
a/Demos/Device/ClassDriver/makefile
b/Demos/Device/ClassDriver/makefile
index
cfa776a
..
99e7c24
100644
(file)
--- a/
Demos/Device/ClassDriver/makefile
+++ b/
Demos/Device/ClassDriver/makefile
@@
-15,6
+15,13
@@
PROJECT_DIRECTORIES = $(shell ls -d */)
PROJECT_DIRECTORIES = $(shell ls -d */)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
diff --git
a/Demos/Device/LowLevel/makefile
b/Demos/Device/LowLevel/makefile
index
4673bfe
..
639b253
100644
(file)
--- a/
Demos/Device/LowLevel/makefile
+++ b/
Demos/Device/LowLevel/makefile
@@
-15,6
+15,13
@@
PROJECT_DIRECTORIES = $(shell ls -d *)
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
diff --git
a/Demos/DualRole/ClassDriver/makefile
b/Demos/DualRole/ClassDriver/makefile
index
0655249
..
ecc49ec
100644
(file)
--- a/
Demos/DualRole/ClassDriver/makefile
+++ b/
Demos/DualRole/ClassDriver/makefile
@@
-15,10
+15,16
@@
PROJECT_DIRECTORIES = $(shell ls -d *)
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
%:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
%:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)
-
diff --git
a/Demos/Host/ClassDriver/makefile
b/Demos/Host/ClassDriver/makefile
index
5c532f1
..
25cfedf
100644
(file)
--- a/
Demos/Host/ClassDriver/makefile
+++ b/
Demos/Host/ClassDriver/makefile
@@
-15,6
+15,13
@@
PROJECT_DIRECTORIES = $(shell ls -d *)
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
diff --git
a/Demos/Host/LowLevel/makefile
b/Demos/Host/LowLevel/makefile
index
5c532f1
..
25cfedf
100644
(file)
--- a/
Demos/Host/LowLevel/makefile
+++ b/
Demos/Host/LowLevel/makefile
@@
-15,6
+15,13
@@
PROJECT_DIRECTORIES = $(shell ls -d *)
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
diff --git
a/Projects/makefile
b/Projects/makefile
index
50ce7ad
..
94deb0e
100644
(file)
--- a/
Projects/makefile
+++ b/
Projects/makefile
@@
-15,6
+15,13
@@
PROJECT_DIRECTORIES = $(shell ls -d *)
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)