summaryrefslogtreecommitdiffstats
path: root/core/base_rules.mk
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-09-15 19:02:26 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-15 19:02:26 -0700
commit88a873a8c59a6da2be8fdbad7c666cd814bc980c (patch)
treedcc8ace2192ed0881ef5744ace1593c422be2cb0 /core/base_rules.mk
parentfbb920ad91c6ab9b466e4e46bc201467bc9fd420 (diff)
parent05ad00eac9edda58c5cd3110853a6b93d6cc4e89 (diff)
downloadbuild-88a873a8c59a6da2be8fdbad7c666cd814bc980c.zip
build-88a873a8c59a6da2be8fdbad7c666cd814bc980c.tar.gz
build-88a873a8c59a6da2be8fdbad7c666cd814bc980c.tar.bz2
am 05ad00ea: am 5890600d: Add a better explanation about how to deal with user modules
Merge commit '05ad00eac9edda58c5cd3110853a6b93d6cc4e89' * commit '05ad00eac9edda58c5cd3110853a6b93d6cc4e89': Add a better explanation about how to deal with user modules
Diffstat (limited to 'core/base_rules.mk')
-rw-r--r--core/base_rules.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/base_rules.mk b/core/base_rules.mk
index 6f4b826..97bcbaa 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -73,6 +73,28 @@ ifneq ($(filter $(LOCAL_MODULE_TAGS),user),)
ifeq ($(filter $(GRANDFATHERED_USER_MODULES),$(LOCAL_MODULE)),)
$(warning *** Module name: $(LOCAL_MODULE))
$(warning *** Makefile location: $(LOCAL_PATH))
+ $(warning * )
+ $(warning * Each module must use a LOCAL_MODULE_TAGS in its)
+ $(warning * Android.mk. Possible tags declared by a module:)
+ $(warning * )
+ $(warning * optional, debug, eng, tests, samples)
+ $(warning * )
+ $(warning * If the module is expected to be in all builds)
+ $(warning * of a product, then it should use the)
+ $(warning * "optional" tag: )
+ $(warning * )
+ $(warning * Add "LOCAL_MODULE_TAGS := optional" in the)
+ $(warning * Android.mk for the affected module, and add)
+ $(warning * the LOCAL_MODULE value for that component)
+ $(warning * into the PRODUCT_PACKAGES section of product)
+ $(warning * makefile(s) where it's necessary, if)
+ $(warning * appropriate.)
+ $(warning * )
+ $(warning * If the component should be in EVERY build of ALL)
+ $(warning * products, then add its LOCAL_MODULE value to the)
+ $(warning * PRODUCT_PACKAGES section of)
+ $(warning * build/target/product/core.mk)
+ $(warning * )
$(error user tag detected on new module - user tags are only supported on legacy modules)
endif
endif