summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2013-06-03 07:57:30 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2013-06-17 10:58:52 -0300
commitde9bd50c598f557aedc927e3b7690eb7a9481fb0 (patch)
tree23b6a84619125c66e78cb08ae3d689c57aceb93b /recipes-graphics
parent6776e274a7f570e7a48f0325d653dfbff22b3e47 (diff)
downloadmeta-fsl-arm-de9bd50c598f557aedc927e3b7690eb7a9481fb0.tar.gz
amd-gpu-x11-bin-mx51: factorize the recipes
this will allow easier addition of non x11 package Change-Id: Ib7df3aa52ae2fdc10044e475087933ea5d258b93 Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc82
-rw-r--r--recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb74
-rw-r--r--recipes-graphics/amd-gpu-x11-bin/files/fix-linux-build-check.patch (renamed from recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51/fix-linux-build-check.patch)0
3 files changed, 83 insertions, 73 deletions
diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
new file mode 100644
index 0000000..b081695
--- /dev/null
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
@@ -0,0 +1,82 @@
1# Copyright (C) 2011, 2012 Freescale
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4LICENSE = "Proprietary"
5SECTION = "libs"
6
7# FIXME: Replace for correct AMD license
8LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
9
10PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
11
12SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
13 file://fix-linux-build-check.patch"
14
15inherit fsl-eula-unpack
16
17# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
18# the source we cannot fix it. Disable the insane check for now.
19python populate_packages_prepend() {
20 for p in d.getVar('PACKAGES', True).split():
21 d.setVar("INSANE_SKIP_%s" % p, "ldflags")
22}
23
24do_install () {
25 install -d ${D}${libdir}
26 install -d ${D}${bindir}
27 install -d ${D}${includedir}
28
29 cp -axr ${S}/usr/bin/* ${D}${bindir}
30 cp -axf ${S}/usr/lib/* ${D}${libdir}
31 cp -axr ${S}/usr/include/* ${D}${includedir}
32
33 find ${D}${bindir} -type f -exec chmod 755 {} \;
34 find ${D}${libdir} -type f -exec chmod 644 {} \;
35 find ${D}${includedir} -type f -exec chmod 644 {} \;
36
37 # FIXME: Fix sonames of broken libraries
38 mv ${D}${libdir}/lib2dz160.so ${D}${libdir}/lib2dz160.so.0
39 mv ${D}${libdir}/lib2dz430.so ${D}${libdir}/lib2dz430.so.0
40
41 # FIXME: Remove unkown files
42 rm -r ${D}${libdir}/libcsi.a \
43 ${D}${libdir}/libres.a
44}
45
46PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
47 libegl-mx51 libegl-mx51-dev libegl-mx51-dbg \
48 libgles-mx51 libgles-mx51-dev libgles-mx51-dbg \
49 libgles2-mx51 libgles2-mx51-dev libgles2-mx51-dbg \
50 libopenvg-mx51 libopenvg-mx51-dev libopenvg-mx51-dbg \
51 lib2dz160-mx51 lib2dz160-mx51-dbg \
52 lib2dz430-mx51 lib2dz430-mx51-dbg"
53
54FILES_${PN}-dbg = "${bindir}/.debug/*"
55
56FILES_libgsl-fsl-mx51 = "${libdir}/libgsl-fsl${SOLIBS}"
57FILES_libgsl-fsl-mx51-dev = "${libdir}/libgsl-fsl${SOLIBSDEV}"
58FILES_libgsl-fsl-mx51-dbg = "${libdir}/.debug/libgsl-fsl${SOLIBS}"
59
60FILES_libegl-mx51 = "${libdir}/libEGL${SOLIBS}"
61FILES_libegl-mx51-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/libEGL${SOLIBSDEV}"
62FILES_libegl-mx51-dbg = "${libdir}/.debug/libEGL${SOLIBS}"
63
64FILES_libgles-mx51 = "${libdir}/libGLESv1*${SOLIBS}"
65FILES_libgles-mx51-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBSDEV}"
66FILES_libgles-mx51-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS}"
67
68FILES_libgles2-mx51 = "${libdir}/libGLESv2${SOLIBS}"
69FILES_libgles2-mx51-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}"
70FILES_libgles2-mx51-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}"
71
72FILES_libopenvg-mx51 = "${libdir}/libOpenVG${SOLIBS}"
73FILES_libopenvg-mx51-dev = "${includedir}/VG ${libdir}/libOpenVG${SOLIBSDEV}"
74FILES_libopenvg-mx51-dbg = "${libdir}/.debug/libOpenVG${SOLIBS}"
75
76FILES_lib2dz160-mx51 = "${libdir}/lib2dz160${SOLIBS}"
77FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
78
79FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
80FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
81
82PACKAGE_ARCH = "${MACHINE_ARCH}"
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}"
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
index 946bfac..946bfac 100644
--- 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