summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2017-12-18 20:43:24 +0900
committerJiyong Park <jiyong@google.com>2018-01-22 10:31:07 +0900
commitbc93996112ce5107fb9ab0870023d63eb6943db9 (patch)
tree9f6b7e284d6e064df4873c8ae47cd779c5460a3e
parent3fd82c0e6dce7659b0f4458ba5ebcde5e232f9ab (diff)
downloadrs-bc93996112ce5107fb9ab0870023d63eb6943db9.tar.gz
Don't install unnecessary VNDK libs
vndk_package is a phony module that includes ALL VNDK libs found in the source code. As a result, VNDK libs that were actually not needed for the device have been installed consuming storage. For example, /system/lib/vndk/android.hardware.automotive*.so files were installed even though walleye/taimen do not have automotive HALs. VNDK libs are now installed by their link time dependencies (i.e. if a vendor module uses libcutils, then /system/lib[64]/vndk-sp/libcutils.so is automatically installed.). By the way, there is a few number of VNDK libs that do not have any link time dependency from vendor modules. They are always opened via dlopen. In such cases, the vndk modules are added to `required` or `LOCAL_REQUIRED_MODULES` of the module that dlopens them. Bug: 67002788 Test: walleye builds and boots to the UI Test: basic functionalities work (sound, camera, camcorder, slow-mo, youtube, wifi, bluetooth) Test: Renderscript works (take a picture, edit it in Photos app) Change-Id: I235b071634fa5f96bee778ed2eb6ffb69eb7a64f
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 08777529..711688a2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -217,6 +217,7 @@ cc_library_shared {
"libclcore_debug_g.bc",
"libclcore_g.bc",
"libcompiler_rt",
+ "libcompiler_rt.vendor",
],
arch: {
@@ -258,6 +259,8 @@ cc_library_shared {
"libRS_internal",
"libRSDriver",
"libRSCacheDir",
+ "libRS_internal.vendor",
+ "libRSDriver.vendor",
],
// Treble configuration