summaryrefslogtreecommitdiffstats
path: root/core/base_rules.mk
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-09-15 13:59:29 -0700
committerKenny Root <kroot@google.com>2010-09-15 14:29:14 -0700
commit5890600dac385941b6a4c6b6d0b230c1f13d54fa (patch)
tree113628b7fa0c686da2a841df87cff5fc58709614 /core/base_rules.mk
parent135a120e3904d782623e4a3fc958ed098e8de384 (diff)
downloadbuild-5890600dac385941b6a4c6b6d0b230c1f13d54fa.zip
build-5890600dac385941b6a4c6b6d0b230c1f13d54fa.tar.gz
build-5890600dac385941b6a4c6b6d0b230c1f13d54fa.tar.bz2
Add a better explanation about how to deal with user modules
Change-Id: Ib79cc0f4b47648daa18db97aa949cd167c8d44a9
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 7e277ec..db05e00 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