diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-09-23 02:45:48 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-10-01 09:22:49 -0300 |
commit | d13f22890ac0afb524f06636750365f8f39524a8 (patch) | |
tree | 6ab0915082b6c4641e705eebc9ec23eb1648a269 | |
parent | b4ab85c9ac39579d06a347fd68adc9776937737e (diff) | |
download | meta-fsl-arm-d13f22890ac0afb524f06636750365f8f39524a8.tar.gz |
amd-gpu-x11-bin-mx51: Fix handling of acceleration libraries
The package has been completely redone to split the libraries into
specific packages and provide runtime replacement for 'mesa'
alternatives.
Change-Id: I8d2c89d2efb47ebd04c8664008f9f9818e689077
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb | 89 |
1 files changed, 72 insertions, 17 deletions
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb index 79118c6..2eaa946 100644 --- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb +++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb | |||
@@ -4,13 +4,13 @@ | |||
4 | DESCRIPTION = "GPU driver and apps for x11 on mx51" | 4 | DESCRIPTION = "GPU driver and apps for x11 on mx51" |
5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
6 | SECTION = "libs" | 6 | SECTION = "libs" |
7 | PR = "r9" | 7 | PR = "r10" |
8 | 8 | ||
9 | #todo: Replace for correct AMD license | 9 | #todo: Replace for correct AMD license |
10 | LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802" | 10 | LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802" |
11 | DEPENDS = "virtual/libx11 libz160" | 11 | DEPENDS = "virtual/libx11" |
12 | PROVIDES = "virtual/libgl" | 12 | |
13 | RDEPENDS = "libz160" | 13 | PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2" |
14 | 14 | ||
15 | SRC_URI = "file://${PN}-${PV}.tar.gz \ | 15 | SRC_URI = "file://${PN}-${PV}.tar.gz \ |
16 | file://fix-linux-build-check.patch" | 16 | file://fix-linux-build-check.patch" |
@@ -23,25 +23,80 @@ do_install () { | |||
23 | install -d ${D}${includedir} | 23 | install -d ${D}${includedir} |
24 | 24 | ||
25 | cp -axr ${S}/usr/bin/* ${D}${bindir} | 25 | cp -axr ${S}/usr/bin/* ${D}${bindir} |
26 | cp -L ${S}/usr/lib/*.so* ${D}${libdir} | 26 | cp -axf ${S}/usr/lib/* ${D}${libdir} |
27 | cp -axr ${S}/usr/include/* ${D}${includedir} | 27 | cp -axr ${S}/usr/include/* ${D}${includedir} |
28 | 28 | ||
29 | find ${D}${bindir} -type f -exec chmod 755 {} \; | 29 | find ${D}${bindir} -type f -exec chmod 755 {} \; |
30 | find ${D}${libdir} -type f -exec chmod 755 {} \; | 30 | find ${D}${libdir} -type f -exec chmod 644 {} \; |
31 | find ${D}${includedir} -type f -exec chmod 660 {} \; | 31 | find ${D}${includedir} -type f -exec chmod 644 {} \; |
32 | |||
33 | # FIXME: Fix sonames of broken libraries | ||
34 | mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0 | ||
35 | mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0 | ||
36 | |||
37 | # FIXME: Remove unkown files | ||
38 | rm -r ${D}${libdir}/libcsi.a \ | ||
39 | ${D}${libdir}/libres.a | ||
32 | } | 40 | } |
33 | 41 | ||
42 | PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \ | ||
43 | libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \ | ||
44 | libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \ | ||
45 | libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \ | ||
46 | libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \ | ||
47 | lib2dz160-mx51 lib2dz160-mx51-dbg \ | ||
48 | lib2dz430-mx51 lib2dz430-mx51-dbg" | ||
49 | |||
34 | INSANE_SKIP_${PN} = "ldflags" | 50 | INSANE_SKIP_${PN} = "ldflags" |
35 | INSANE_SKIP_${PN}-dev = "ldflags" | 51 | |
36 | INSANE_SKIP_${PN}-staticdev = "ldflags" | 52 | FILES_${PN}-dbg = "${bindir}/.debug/*" |
37 | FILES_${PN} = "${bindir}/* ${libdir}/*.so*" | 53 | |
38 | FILES_${PN}-dev = "\ | 54 | FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}" |
39 | ${includedir}/EGL/*.h \ | 55 | FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}" |
40 | ${includedir}/GLES/*.h \ | 56 | FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}" |
41 | ${includedir}/GLES2/*.h \ | 57 | |
42 | ${includedir}/KHR/*.h \ | 58 | INSANE_SKIP_libgsl-fsl-mx51 = "ldflags" |
43 | ${includedir}/VG/*.h" | 59 | INSANE_SKIP_libgsl-fsl-mx51-dev = "ldflags" |
44 | FILES_${PN}-staticdev = "${libdir}/*.a" | 60 | INSANE_SKIP_libgsl-fsl-mx51-dbg = "ldflags" |
61 | |||
62 | FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}" | ||
63 | FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}" | ||
64 | FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}" | ||
65 | |||
66 | INSANE_SKIP_libegl-mx51 = "ldflags" | ||
67 | INSANE_SKIP_libegl-mx51-dev = "ldflags" | ||
68 | INSANE_SKIP_libegl-mx51-dbg = "ldflags" | ||
69 | |||
70 | FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}" | ||
71 | FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}" | ||
72 | FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}" | ||
73 | INSANE_SKIP_libgles-mx51 = "ldflags" | ||
74 | INSANE_SKIP_libgles-mx51-dev = "ldflags" | ||
75 | INSANE_SKIP_libgles-mx51-dbg = "ldflags" | ||
76 | |||
77 | FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}" | ||
78 | FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}" | ||
79 | FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}" | ||
80 | INSANE_SKIP_libgles2-mx51 = "ldflags" | ||
81 | INSANE_SKIP_libgles2-mx51-dev = "ldflags" | ||
82 | INSANE_SKIP_libgles2-mx51-dbg = "ldflags" | ||
83 | |||
84 | FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}" | ||
85 | FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}" | ||
86 | FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}" | ||
87 | INSANE_SKIP_libopenvg-mx51 = "ldflags" | ||
88 | INSANE_SKIP_libopenvg-mx51-dev = "ldflags" | ||
89 | INSANE_SKIP_libopenvg-mx51-dbg = "ldflags" | ||
90 | |||
91 | FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}" | ||
92 | FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}" | ||
93 | INSANE_SKIP_lib2dz160-mx51 = "ldflags" | ||
94 | INSANE_SKIP_lib2dz160-mx51-dbg = "ldflags" | ||
95 | |||
96 | FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}" | ||
97 | FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}" | ||
98 | INSANE_SKIP_lib2dz430-mx51 = "ldflags" | ||
99 | INSANE_SKIP_lib2dz430-mx51-dbg = "ldflags" | ||
45 | 100 | ||
46 | COMPATIBLE_MACHINE = "(mx5)" | 101 | COMPATIBLE_MACHINE = "(mx5)" |
47 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 102 | PACKAGE_ARCH = "${MACHINE_ARCH}" |