--- a/make/Images.gmk Fri Apr 01 17:06:44 2016 +0200
+++ b/make/Images.gmk Fri Apr 01 17:08:43 2016 +0200
@@ -41,8 +41,7 @@
# All modules for the current target platform.
ALL_MODULES := $(call FindAllModules)
-IMPORTED_MODULES := $(call FindImportedModules)
-$(foreach m, $(IMPORTED_MODULES), $(eval $(call ReadSingleImportMetaData, $m)))
+$(eval $(call ReadImportMetaData))
JRE_MODULES += $(filter-out $(MODULES_FILTER), $(BOOT_MODULES) $(PLATFORM_MODULES) $(JRE_TOOL_MODULES))
JDK_MODULES += $(filter-out $(MODULES_FILTER), $(ALL_MODULES))
--- a/make/common/Modules.gmk Fri Apr 01 17:06:44 2016 +0200
+++ b/make/common/Modules.gmk Fri Apr 01 17:08:43 2016 +0200
@@ -252,8 +252,9 @@
# * PLATFORM_MODULES
# * JRE_TOOL_MODULES
define ReadImportMetaData
- IMPORTED_MODULES := $(call FindImportedModules)
- $(foreach m, $(IMPORTED_MODULES), $(eval $(call ReadSingleImportMetaData, $m)))
+ IMPORTED_MODULES := $$(call FindImportedModules)
+ $$(foreach m, $$(IMPORTED_MODULES), \
+ $$(eval $$(call ReadSingleImportMetaData, $$m)))
endef
################################################################################