summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb')
-rw-r--r--recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb74
1 files changed, 1 insertions, 73 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 70568f9..1a3c542 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
@@ -2,87 +2,15 @@
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "GPU driver and apps for x11 on mx51" 4DESCRIPTION = "GPU driver and apps for x11 on mx51"
5LICENSE = "Proprietary"
6SECTION = "libs"
7PR = "r12" 5PR = "r12"
8 6
9# FIXME: Replace for correct AMD license 7# FIXME: Replace for correct AMD license
10LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802" 8LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
11DEPENDS = "virtual/libx11 libxrender" 9DEPENDS = "virtual/libx11 libxrender"
12 10
13PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2" 11include amd-gpu-mx51.inc
14 12
15SRC_URI = "${FSL_MIRROR}/amd-gpu-x11-bin-mx51-${PV}.bin;fsl-eula=true \
16 file://fix-linux-build-check.patch"
17SRC_URI[md5sum] = "54391a4e670b597d06d01253fb217cad" 13SRC_URI[md5sum] = "54391a4e670b597d06d01253fb217cad"
18SRC_URI[sha256sum] = "c7a6fa03b7aa2a375556c59908876554ba720c1e744baba2debb84a408f790db" 14SRC_URI[sha256sum] = "c7a6fa03b7aa2a375556c59908876554ba720c1e744baba2debb84a408f790db"
19 15
20inherit fsl-eula-unpack
21
22# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
23# the source we cannot fix it. Disable the insane check for now.
24python populate_packages_prepend() {
25 for p in d.getVar('PACKAGES', True).split():
26 d.setVar("INSANE_SKIP_%s" % p, "ldflags")
27}
28
29do_install () {
30 install -d ${D}${libdir}
31 install -d ${D}${bindir}
32 install -d ${D}${includedir}
33
34 cp -axr ${S}/usr/bin/* ${D}${bindir}
35 cp -axf ${S}/usr/lib/* ${D}${libdir}
36 cp -axr ${S}/usr/include/* ${D}${includedir}
37
38 find ${D}${bindir} -type f -exec chmod 755 {} \;
39 find ${D}${libdir} -type f -exec chmod 644 {} \;
40 find ${D}${includedir} -type f -exec chmod 644 {} \;
41
42 # FIXME: Fix sonames of broken libraries
43 mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
44 mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
45
46 # FIXME: Remove unkown files
47 rm -r ${D}${libdir}/libcsi.a \
48 ${D}${libdir}/libres.a
49}
50
51PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
52 libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
53 libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
54 libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
55 libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
56 lib2dz160-mx51 lib2dz160-mx51-dbg \
57 lib2dz430-mx51 lib2dz430-mx51-dbg"
58
59FILES_${PN}-dbg = "${bindir}/.debug/*"
60
61FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
62FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
63FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
64
65FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
66FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
67FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
68
69FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
70FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
71FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
72
73FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
74FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
75FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
76
77FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
78FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
79FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
80
81FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
82FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
83
84FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
85FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
86
87COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', 'Invalid!', d)}" 16COMPATIBLE_MACHINE = "${@base_contains('DISTRO_FEATURES', 'x11', '(mx5)', 'Invalid!', d)}"
88PACKAGE_ARCH = "${MACHINE_ARCH}"