72 -cp "$(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist" \ 73 build.tools.module.GenModulesList 74 75 MODULES_LIST_FILE := $(MAKESUPPORT_OUTPUTDIR)/modules.list 76 MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk 77 78 $(MODULES_LIST_FILE): $(SRC_ROOT)/modules.xml \ 79 $(BUILD_GENMODULESLIST) 80 $(TOOL_GENMODULESLIST) -o $@ $(filter %.xml, $^) 81 82 $(MODULE_DEPS_MAKEFILE): $(MODULES_LIST_FILE) 83 $(CAT) $^ | $(SED) -e 's/^\([^:]*\):/DEPS_\1 :=/g' > $@ 84 85 -include $(MODULE_DEPS_MAKEFILE) 86 87 # Param 1: Module to find deps for 88 define FindDepsForModule 89 $(DEPS_$(strip $1)) 90 endef 91 92 ################################################################################ 93 94 # Hook to include the corresponding custom file, if present. 95 $(eval $(call IncludeCustomExtension, , common/Modules.gmk)) 96 97 endif # _MODULES_GMK | 72 -cp "$(MAKESUPPORT_OUTPUTDIR)/bt_classes_moduleslist" \ 73 build.tools.module.GenModulesList 74 75 MODULES_LIST_FILE := $(MAKESUPPORT_OUTPUTDIR)/modules.list 76 MODULE_DEPS_MAKEFILE := $(MAKESUPPORT_OUTPUTDIR)/module-deps.gmk 77 78 $(MODULES_LIST_FILE): $(SRC_ROOT)/modules.xml \ 79 $(BUILD_GENMODULESLIST) 80 $(TOOL_GENMODULESLIST) -o $@ $(filter %.xml, $^) 81 82 $(MODULE_DEPS_MAKEFILE): $(MODULES_LIST_FILE) 83 $(CAT) $^ | $(SED) -e 's/^\([^:]*\):/DEPS_\1 :=/g' > $@ 84 85 -include $(MODULE_DEPS_MAKEFILE) 86 87 # Param 1: Module to find deps for 88 define FindDepsForModule 89 $(DEPS_$(strip $1)) 90 endef 91 92 # Finds 3 levels of transitive dependencies. This happens to be enough for now. 93 # Param 1: Module to find transitive deps for 94 FindTransitiveDepsForModule = \ 95 $(sort $(call FindDepsForModule, $1) \ 96 $(foreach m, $(call FindDepsForModule, $1), \ 97 $(call FindDepsForModule, $m) \ 98 $(foreach n, $(call FindDepsForModule, $m), \ 99 $(call FindDepsForModule, $n)))) 100 101 ################################################################################ 102 103 # Hook to include the corresponding custom file, if present. 104 $(eval $(call IncludeCustomExtension, , common/Modules.gmk)) 105 106 endif # _MODULES_GMK |