mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-16 10:18:23 +01:00
Fix soname in Mali.so to make auto-RDEPENDS work
The auto-RDEPENDs system reqires that all .so libraries have proper soname set. If library soes not have soname set, it will not be added to RDEPENDs list of other elf files. Closes #240
This commit is contained in:
parent
d0551827b3
commit
12b85f0d30
@ -31,7 +31,7 @@ SRC_URI = "gitsm://github.com/linux-sunxi/sunxi-mali.git \
|
|||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
DEPENDS = "libdrm xorgproto libump"
|
DEPENDS = "libdrm xorgproto libump patchelf-native"
|
||||||
|
|
||||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
|
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)}"
|
||||||
PACKAGECONFIG[wayland] = "EGL_TYPE=framebuffer,,,"
|
PACKAGECONFIG[wayland] = "EGL_TYPE=framebuffer,,,"
|
||||||
@ -75,6 +75,7 @@ do_install() {
|
|||||||
# Packages like xf86-video-fbturbo dlopen() libUMP.so, so we do need to ship the .so files in ${PN}
|
# Packages like xf86-video-fbturbo dlopen() libUMP.so, so we do need to ship the .so files in ${PN}
|
||||||
|
|
||||||
mv ${D}${libdir}/libMali.so ${D}${libdir}/libMali.so.3
|
mv ${D}${libdir}/libMali.so ${D}${libdir}/libMali.so.3
|
||||||
|
patchelf --set-soname libMali.so.3 ${D}${libdir}/libMali.so.3
|
||||||
ln -sf libMali.so.3 ${D}${libdir}/libMali.so
|
ln -sf libMali.so.3 ${D}${libdir}/libMali.so
|
||||||
|
|
||||||
for flib in libEGL.so.1.4 libGLESv1_CM.so.1.1 libGLESv2.so.2.0 ; do
|
for flib in libEGL.so.1.4 libGLESv1_CM.so.1.1 libGLESv2.so.2.0 ; do
|
||||||
|
Loading…
Reference in New Issue
Block a user