android源码添加新module遇到ach module must use a LOCAL_MODULE_TAGS错误

单编新加的module出现如下错误:

*** Module name: libril-cwm-2g

*** Makefile location: hardware/ril/libril-cwm-2g
*
* Each module must use a LOCAL_MODULE_TAGS in its
* Android.mk. Possible tags declared by a module:
*
*     optional, debug, eng, tests, samples
*
* If the module is expected to be in all builds
* of a product, then it should use the
* "optional" tag:
*
*    Add "LOCAL_MODULE_TAGS := optional" in the
*    Android.mk for the affected module, and add
*    the LOCAL_MODULE value for that component
*    into the PRODUCT_PACKAGES section of product
*    makefile(s) where it's necessary, if
*    appropriate.
*
* If the component should be in EVERY build of ALL
* products, then add its LOCAL_MODULE value to the
* PRODUCT_PACKAGES section of
* build/target/product/core.mk
*

*** user tag detected on new module - user tags are only supported on legacy modules。 停止。


解决办法:修改新加module的Android.mk文件,添加LOCAL_MODULE和LOCAL_MODULE_TAGS项即可


你可能感兴趣的:(android源码添加新module遇到ach module must use a LOCAL_MODULE_TAGS错误)