Skip to contentSkip to conversation

libgles-omap3-5.01.01.01: add .list file

PATCH New Aymeric Dumaz 1 participant 1 message Aug 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libgles-omap3-5.01.01.01: add .list file

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.

The version 2 of this patch add the -f to the copy command.

---
 .../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
recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list new file +9 -0
new file mode 100644
index 0000000..a59d7f5
@@ -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
recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb +7 -0
index 0b1b8ca..353fe2f 100644
@@ -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 -f ${WORKDIR}/${PN}.list ${SHLIBSWORKDIR}")
+}
Signature · 1 line
1.9.1