summaryrefslogtreecommitdiffstats
path: root/core/node_fns.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/node_fns.mk')
-rw-r--r--core/node_fns.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/node_fns.mk b/core/node_fns.mk
index 5d2a669..31b8543 100644
--- a/core/node_fns.mk
+++ b/core/node_fns.mk
@@ -187,7 +187,10 @@ define _import-node
$(eval _include_stack := $(2) $$(_include_stack))
$(call clear-var-list, $(3))
$(eval LOCAL_PATH := $(patsubst %/,%,$(dir $(2))))
+ $(eval MAKEFILE_LIST :=)
$(eval include $(2))
+ $(eval _included := $(filter-out $(2),$(MAKEFILE_LIST)))
+ $(eval MAKEFILE_LIST :=)
$(eval LOCAL_PATH :=)
$(call copy-var-list, $(1).$(2), $(3))
$(call clear-var-list, $(3))
@@ -203,6 +206,13 @@ define _import-node
endef
#
+# This will generate a warning for _included above
+# $(if $(_included), \
+# $(eval $(warning product spec file: $(2)))\
+# $(foreach _inc,$(_included),$(eval $(warning $(space)$(space)$(space)includes: $(_inc)))),)
+#
+
+#
# $(1): context prefix
# $(2): list of makefiles representing nodes to import
# $(3): list of node variable names