<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 2:49 PM, Eric Bénard <span dir="ltr"><<a href="mailto:eric@eukrea.com" target="_blank">eric@eukrea.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">this will allow easier addition of non x11 package<br>
<br>
Signed-off-by: Eric Bénard <<a href="mailto:eric@eukrea.com">eric@eukrea.com</a>><br>
<br>
Conflicts:<br>
        recipes-graphics/amd-gpu-x11-bin/<a href="http://amd-gpu-x11-bin-mx51_11.09.01.bb" target="_blank">amd-gpu-x11-bin-mx51_11.09.01.bb</a></blockquote><div><br></div><div style>This shouldn't be in commit log ;-)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
---<br>
 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc  |   82 ++++++++++++++++++++<br>
 .../<a href="http://amd-gpu-x11-bin-mx51_11.09.01.bb" target="_blank">amd-gpu-x11-bin-mx51_11.09.01.bb</a>               |   74 +-----------------<br>
 .../fix-linux-build-check.patch                    |    0<br>
 3 files changed, 83 insertions(+), 73 deletions(-)<br>
 create mode 100644 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc<br>
 rename recipes-graphics/amd-gpu-x11-bin/{amd-gpu-x11-bin-mx51 => files}/fix-linux-build-check.patch (100%)<br>
<br>
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc<br>
new file mode 100644<br>
index 0000000..b081695<br>
--- /dev/null<br>
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc<br>
@@ -0,0 +1,82 @@<br>
+# Copyright (C) 2011, 2012 Freescale<br>
+# Released under the MIT license (see COPYING.MIT for the terms)<br>
+<br>
+LICENSE = "Proprietary"<br>
+SECTION = "libs"<br>
+<br>
+# FIXME: Replace for correct AMD license<br>
+LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"<br>
+<br>
+PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"<br>
+<br>
+SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \<br>
+           file://fix-linux-build-check.patch"<br>
+<br>
+inherit fsl-eula-unpack<br>
+<br>
+# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have<br>
+# the source we cannot fix it. Disable the insane check for now.<br>
+python populate_packages_prepend() {<br>
+    for p in d.getVar('PACKAGES', True).split():<br>
+        d.setVar("INSANE_SKIP_%s" % p, "ldflags")<br>
+}<br>
+<br>
+do_install () {<br>
+    install -d ${D}${libdir}<br>
+    install -d ${D}${bindir}<br>
+    install -d ${D}${includedir}<br>
+<br>
+    cp -axr ${S}/usr/bin/* ${D}${bindir}<br>
+    cp -axf ${S}/usr/lib/* ${D}${libdir}<br>
+    cp -axr ${S}/usr/include/* ${D}${includedir}<br>
+<br>
+    find ${D}${bindir} -type f -exec chmod 755 {} \;<br>
+    find ${D}${libdir} -type f -exec chmod 644 {} \;<br>
+    find ${D}${includedir} -type f -exec chmod 644 {} \;<br>
+<br>
+    # FIXME: Fix sonames of broken libraries<br>
+    mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0<br>
+    mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0<br>
+<br>
+    # FIXME: Remove unkown files<br>
+    rm -r ${D}${libdir}/libcsi.a \<br>
+          ${D}${libdir}/libres.a<br>
+}<br>
+<br>
+PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \<br>
+             libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \<br>
+             libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \<br>
+             libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \<br>
+             libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \<br>
+             lib2dz160-mx51 lib2dz160-mx51-dbg \<br>
+             lib2dz430-mx51 lib2dz430-mx51-dbg"<br>
+<br>
+FILES_${PN}-dbg = "${bindir}/.debug/*"<br>
+<br>
+FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"<br>
+FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"<br>
+FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"<br>
+<br>
+FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"<br>
+FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"<br>
+FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"<br>
+<br>
+FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"<br>
+FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"<br>
+FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"<br>
+<br>
+FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"<br>
+FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"<br>
+FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"<br>
+<br>
+FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"<br>
+FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"<br>
+FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"<br>
+<br>
+FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"<br>
+FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"<br>
+<br>
+FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"<br>
+FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"<br>
+<br>
+PACKAGE_ARCH = "${MACHINE_ARCH}"<br>
diff --git a/recipes-graphics/amd-gpu-x11-bin/<a href="http://amd-gpu-x11-bin-mx51_11.09.01.bb" target="_blank">amd-gpu-x11-bin-mx51_11.09.01.bb</a> b/recipes-graphics/amd-gpu-x11-bin/<a href="http://amd-gpu-x11-bin-mx51_11.09.01.bb" target="_blank">amd-gpu-x11-bin-mx51_11.09.01.bb</a><br>

index 60fcafc..f33f114 100644<br>
--- a/recipes-graphics/amd-gpu-x11-bin/<a href="http://amd-gpu-x11-bin-mx51_11.09.01.bb" target="_blank">amd-gpu-x11-bin-mx51_11.09.01.bb</a><br>
+++ b/recipes-graphics/amd-gpu-x11-bin/<a href="http://amd-gpu-x11-bin-mx51_11.09.01.bb" target="_blank">amd-gpu-x11-bin-mx51_11.09.01.bb</a><br>
@@ -2,87 +2,15 @@<br>
 # Released under the MIT license (see COPYING.MIT for the terms)<br>
<br>
 DESCRIPTION = "GPU driver and apps for x11 on mx51"<br>
-LICENSE = "Proprietary"<br>
-SECTION = "libs"<br>
 PR = "r12"<br>
<br>
 # FIXME: Replace for correct AMD license<br>
 LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"<br>
 DEPENDS = "virtual/libx11 libxrender"<br>
<br>
-PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"<br>
+include amd-gpu-mx51.inc<br>
<br>
-SRC_URI = "${FSL_MIRROR}/amd-gpu-x11-bin-mx51-${PV}.bin;fsl-eula=true \<br>
-           file://fix-linux-build-check.patch"<br>
 SRC_URI[md5sum] = "54391a4e670b597d06d01253fb217cad"<br>
 SRC_URI[sha256sum] = "c7a6fa03b7aa2a375556c59908876554ba720c1e744baba2debb84a408f790db"<br>
<br>
-inherit fsl-eula-unpack<br>
-<br>
-# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have<br>
-# the source we cannot fix it. Disable the insane check for now.<br>
-python populate_packages_prepend() {<br>
-    for p in d.getVar('PACKAGES', True).split():<br>
-        d.setVar("INSANE_SKIP_%s" % p, "ldflags")<br>
-}<br>
-<br>
-do_install () {<br>
-    install -d ${D}${libdir}<br>
-    install -d ${D}${bindir}<br>
-    install -d ${D}${includedir}<br>
-<br>
-    cp -axr ${S}/usr/bin/* ${D}${bindir}<br>
-    cp -axf ${S}/usr/lib/* ${D}${libdir}<br>
-    cp -axr ${S}/usr/include/* ${D}${includedir}<br>
-<br>
-    find ${D}${bindir} -type f -exec chmod 755 {} \;<br>
-    find ${D}${libdir} -type f -exec chmod 644 {} \;<br>
-    find ${D}${includedir} -type f -exec chmod 644 {} \;<br>
-<br>
-    # FIXME: Fix sonames of broken libraries<br>
-    mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0<br>
-    mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0<br>
-<br>
-    # FIXME: Remove unkown files<br>
-    rm -r ${D}${libdir}/libcsi.a \<br>
-          ${D}${libdir}/libres.a<br>
-}<br>
-<br>
-PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \<br>
-             libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \<br>
-             libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \<br>
-             libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \<br>
-             libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \<br>
-             lib2dz160-mx51 lib2dz160-mx51-dbg \<br>
-             lib2dz430-mx51 lib2dz430-mx51-dbg"<br>
-<br>
-FILES_${PN}-dbg = "${bindir}/.debug/*"<br>
-<br>
-FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"<br>
-FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"<br>
-FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"<br>
-<br>
-FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"<br>
-FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"<br>
-FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"<br>
-<br>
-FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"<br>
-FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"<br>
-FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"<br>
-<br>
-FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"<br>
-FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"<br>
-FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"<br>
-<br>
-FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"<br>
-FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"<br>
-FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"<br>
-<br>
-FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"<br>
-FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"<br>
-<br>
-FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"<br>
-FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"<br>
-<br>
 COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', '', d)}"<br>
-PACKAGE_ARCH = "${MACHINE_ARCH}"<br>
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch b/recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch<br>
similarity index 100%<br>
rename from recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch<br>
rename to recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
meta-freescale mailing list<br>
<a href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/meta-freescale" target="_blank">https://lists.yoctoproject.org/listinfo/meta-freescale</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Otavio Salvador                             O.S. Systems<br><a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a>        <a href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br>
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750<br>
</div></div>