summaryrefslogtreecommitdiffstats
path: root/core/main.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-02-12 01:31:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-12 01:31:22 +0000
commitbec954d05e0eeec178c796d2332ee9a86becb5dc (patch)
tree531d0bf194d281388806ff08ffae5e86cac03a85 /core/main.mk
parentb12cce10fab8c9adda213506be4ce675104655da (diff)
parentd18e570fbaef9fdc6605ed75960641416a370a79 (diff)
downloadbuild-bec954d05e0eeec178c796d2332ee9a86becb5dc.zip
build-bec954d05e0eeec178c796d2332ee9a86becb5dc.tar.gz
build-bec954d05e0eeec178c796d2332ee9a86becb5dc.tar.bz2
Merge "Clean up dangling module names"
Diffstat (limited to 'core/main.mk')
-rw-r--r--core/main.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/main.mk b/core/main.mk
index df2dea8..871f51b 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -753,9 +753,13 @@ ifdef is_sdk_build
# Ensure every module listed in PRODUCT_PACKAGES* gets something installed
# TODO: Should we do this for all builds and not just the sdk?
+ dangling_modules :=
$(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
$(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
- $(error $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES has nothing to install!)))
+ $(eval dangling_modules += $(m))))
+ ifneq ($(dangling_modules),)
+ $(error Module names '$(dangling_modules)' in PRODUCT_PACKAGES has nothing to install!)
+ endif
$(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG), \
$(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
$(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_DEBUG has nothing to install!)))