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>
Thu, 17 Oct 2019 18:07:53 +0000 (20:07 +0200)
commitbe3ec74f12892e5d1777bef5025c2934ef440017
tree8e2006a949db01483529248f6e8c36def0a19360
parent283839b00a11cfe6cc6a35d08b637cd79e3c7fdf
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