[meta-ti] [master][PATCH] libgles-omap3-5.01.01.01: add .list file

Aymeric Dumaz aymeric.dumaz at gmail.com
Fri Aug 15 09:15:28 PDT 2014


When libraries don't have a SONAME in their section, their name aren't added in
the .list file generated during do_package.
Other recipes are able to build against them but are not able to find them
afterwards, leading to missing dependencies.

This patch add the file that would be created if the SONAME was present.

Signed-off-by: Aymeric Dumaz <aymeric.dumaz at gmail.com>
---
 .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.list          | 9 +++++++++
 recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb             | 7 +++++++
 2 files changed, 16 insertions(+)
 create mode 100644 recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list

diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list
new file mode 100644
index 0000000..a59d7f5
--- /dev/null
+++ b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list
@@ -0,0 +1,9 @@
+libEGL.so:/usr/lib:5.01.01.01
+libGLES_CM.so:/usr/lib:5.01.01.01
+libsrv_init.so:/usr/lib:5.01.01.01
+libusc.so:/usr/lib:5.01.01.01
+libsrv_um.so:/usr/lib:5.01.01.01
+libglslcompiler.so:/usr/lib:5.01.01.01
+libpvr2d.so:/usr/lib:5.01.01.01
+libGLESv2.so:/usr/lib:5.01.01.01
+libIMGegl.so:/usr/lib:5.01.01.01
diff --git a/recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb b/recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb
index 0b1b8ca..0ee3489 100644
--- a/recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb
+++ b/recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb
@@ -40,6 +40,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports
            file://cputype \
            file://rc.pvr \
            file://99-bufferclass.rules  \
+           file://${PN}.list \
 "
 
 SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
@@ -48,3 +49,9 @@ SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
 S = "${WORKDIR}/Graphics_SDK_${SGXPV}"
 
 LIBGLESWINDOWSYSTEM ?= "libpvrPVR2D_FRONTWSEGL.so.1"
+
+# HACK! The libraries don't have a SONAME, so other packages will link to them
+# but Yocto won't be able to find this package as a dependency afterwards.
+package_do_shlibs_append () {
+    os.system("cp ${WORKDIR}/${PN}.list ${SHLIBSWORKDIR}")
+}
-- 
1.9.1



More information about the meta-ti mailing list