From a5184806be4f6b03eae1c131c032d3d97b6d9de6 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Fri, 24 Jul 2015 12:30:41 -0700 Subject: [PATCH] Fix mmma uses like "mmma ./external/apache-harmony" Fix mmma uses like "mmma ./external/apache-harmony" by removing the leading ./ in entries in BUILD_MODULES_IN_PATHS. Change-Id: I414e734c8a29434fc89ddb2b745613c33709c5e3 --- core/main.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/main.mk b/core/main.mk index ffff1f7015..d85bade6e5 100644 --- a/core/main.mk +++ b/core/main.mk @@ -881,7 +881,8 @@ ifndef BUILD_MODULES_IN_PATHS all_modules: $(ALL_MODULES) else # BUILD_MODULES_IN_PATHS is a list of paths relative to the top of the tree -module_path_patterns := $(foreach p, $(BUILD_MODULES_IN_PATHS),\ +build_modules_in_paths := $(patsubst ./%,%,$(BUILD_MODULES_IN_PATHS)) +module_path_patterns := $(foreach p, $(build_modules_in_paths),\ $(if $(filter %/,$(p)),$(p)%,$(p)/%)) my_all_modules := $(sort $(foreach m, $(ALL_MODULES),$(if $(filter\ $(module_path_patterns), $(addsuffix /,$(ALL_MODULES.$(m).PATH))),$(m))))