When libraries don't have a SONAME in their section, their name aren't added in the .list/.ver files 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 files that would be created if the SONAME was present. Signed-off-by: Aymeric Dumaz <[email protected]> --- .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.list | 9 +++++++++ .../libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver | 1 + recipes-graphics/libgles/libgles-omap3_5.01.01.01.bb | 9 +++++++++ 3 files changed, 19 insertions(+) create mode 100644 recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list create mode 100644 recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver 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..7221e9a --- /dev/null +++ b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.list @@ -0,0 +1,9 @@ +libEGL.so +libGLES_CM.so +libGLESv2.so +libglslcompiler.so +libIMGegl.so +libpvr2d.so +libsrv_init.so +libsrv_um.so +libusc.so diff --git a/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver new file mode 100644 index 0000000..e81ca08 --- /dev/null +++ b/recipes-graphics/libgles/libgles-omap3-5.01.01.01/libgles-omap3.ver @@ -0,0 +1 @@ +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..26de4a6 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,8 @@ 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 \ + file://${PN}.ver \ " SRC_URI[md5sum] := "${MD5SUM_HARDFP}" @@ -48,3 +50,10 @@ 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 () { + base_filename = "${WORKDIR}/${PN}" + os.system("cp -f {0}.list {0}.ver ${SHLIBSWORKDIR}".format(base_filename)) +} -- 1.9.1 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
