OSDN Git Service

Allow module to specify LOCAL_INSTALLED_MODULE_STEM
authorYing Wang <wangying@google.com>
Tue, 24 Sep 2013 22:56:11 +0000 (15:56 -0700)
committerDoug Zongker <dougz@google.com>
Wed, 25 Sep 2013 19:30:59 +0000 (12:30 -0700)
commit2408479cf9cf9cfe87e464e9b5d2f36143818d37
treeb087e729ea49ce90f0a8cbd16ac79f34a21c5854
parentd21a641fb4c27fdba21b72116a4e5e722a7acf6f
Allow module to specify LOCAL_INSTALLED_MODULE_STEM

With this change, you can install a shared library with module name foo
as bar.so to the system.img with:
LOCAL_INSTALLED_MODULE_STEM := bar.so
Note that we in general still disallow a static/shared library to
specify LOCAL_MODULE_STEM or LOCAL_BUILT_MODULE_STEM, because the build
system uses LOCAL_MODULE to compute build time dependencies, such as
export_includes, the -l linker flag etc.
Also, if you use LOCAL_INSTALLED_MODULE_STEM to change the installed
file name and if any other module links against this library, you may
run into runtime error: the library name baked in to the binary is not
the same as file name in the system image.

Change-Id: I55b571c8139c3bda07a4a0e50cea0f20d8d6c168
core/base_rules.mk
core/clear_vars.mk
core/dynamic_binary.mk