OSDN Git Service

android: make libdrm*.so available to the vendor partition
authorJiyong Park <jiyong@google.com>
Tue, 12 Dec 2017 10:43:07 +0000 (19:43 +0900)
committerMauro Rossi <issor.oruam@gmail.com>
Wed, 17 Oct 2018 07:29:54 +0000 (09:29 +0200)
commit8ccbfeab9fb2bddf4585339a0bcbea2f1e3ffa1e
treeef0c29bbf171a5cdf013c7b2c806fa517e0d86ce
parent6ae6cfd143d992f0184c1a32b0672b53f368c9c9
android: make libdrm*.so available to the vendor partition

libdrm_<vendor>.so are moved to the vendor partition (/vendor/lib or
/system/vendor/lib if there is no dedicated vendor partition), since
they are vendor-specific extension that must not be in the system
partition which should be generic.

libdrm.so (which is generic) is built/installed twice: once to
/vendor/lib to satisfy the dependency for the libdrm_<vendor>.so libs
and once to /system/lib for platform clients such as the recovery
executable.

The platform variant of libdrm is named as libdrm_platform.so since
in Android.mk we can't have two different shared libs having
same soname. In the near future, this will be fixed by converting these
Android.mk files to Android.bp and mark the module libdrm as
'vendor_available: true'. (See
https://android-review.googlesource.com/c/368372/ for further detail on
the property)

Signed-off-by: Jiyong Park <jiyong@google.com>
12 files changed:
Android.common.mk
Android.mk
amdgpu/Android.mk
etnaviv/Android.mk
freedreno/Android.mk
intel/Android.mk
libkms/Android.mk
nouveau/Android.mk
radeon/Android.mk
tests/modetest/Android.mk
tests/proptest/Android.mk
tests/util/Android.mk