add a warning about using include in product spec files.
currently disabled because there are too many of them.
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 @@
$(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 @@
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