< prev index next >

make/common/Modules.gmk

Print this page

        

@@ -87,10 +87,19 @@
 # Param 1: Module to find deps for
 define FindDepsForModule
   $(DEPS_$(strip $1))
 endef
 
+# Finds 3 levels of transitive dependencies. This happens to be enough for now.
+# Param 1: Module to find transitive deps for
+FindTransitiveDepsForModule = \
+    $(sort $(call FindDepsForModule, $1) \
+        $(foreach m, $(call FindDepsForModule, $1), \
+            $(call FindDepsForModule, $m) \
+            $(foreach n, $(call FindDepsForModule, $m), \
+                 $(call FindDepsForModule, $n))))
+
 ################################################################################
 
 # Hook to include the corresponding custom file, if present.
 $(eval $(call IncludeCustomExtension, , common/Modules.gmk))
 
< prev index next >