diff options
Diffstat (limited to 'common/recipes-graphics')
-rw-r--r-- | common/recipes-graphics/xorg-driver/emgd-driver-bin_1.14.bb | 163 |
1 files changed, 0 insertions, 163 deletions
diff --git a/common/recipes-graphics/xorg-driver/emgd-driver-bin_1.14.bb b/common/recipes-graphics/xorg-driver/emgd-driver-bin_1.14.bb deleted file mode 100644 index 8de006d9..00000000 --- a/common/recipes-graphics/xorg-driver/emgd-driver-bin_1.14.bb +++ /dev/null | |||
@@ -1,163 +0,0 @@ | |||
1 | SUMMARY = "EMGD 1.14 xserver binaries" | ||
2 | DESCRIPTION = "EMGD 1.14 includes some userspace binaries that use non-free \ | ||
3 | licensing, which are now available via a non-click-through downloadable \ | ||
4 | tarball, and is what this recipe now uses. Since it is a non-free license, \ | ||
5 | this recipe is marked as 'License_emgd-driver-bin_1.14' and you need to add \ | ||
6 | to LICENSE_FLAGS_WHITELIST += \"license_emgd-driver-bin_1.14\" to your \ | ||
7 | local.conf in order to enable it in a build." | ||
8 | LICENSE = "Intel-software-license-emgd-1.14 & Intel-user-space-graphics-driver-binary-license-emgd-1.14" | ||
9 | LICENSE_FLAGS = "license_${PN}_${PV}" | ||
10 | PR = "r7" | ||
11 | |||
12 | EMGD_LIC_DIR = "IEMGD_HEAD_Linux/License" | ||
13 | EMGD_RPM_DIR = "IEMGD_HEAD_Linux/MeeGo1.2" | ||
14 | EMGD_VIDEO_PLUGIN_DIR = "../common/video_plugin" | ||
15 | |||
16 | LIC_FILES_CHKSUM = "file://${WORKDIR}/${EMGD_LIC_DIR}/License.txt;md5=b54f01caaf8483b3cb60c0c40f2bf22d \ | ||
17 | file://${WORKDIR}/${EMGD_LIC_DIR}/readme.txt;md5=73cbec7a0d2bc22faf567238e055bfc8" | ||
18 | |||
19 | DEPENDS = "rpm-native xz-native" | ||
20 | RDEPENDS_${PN} = "libxcb-dri2" | ||
21 | |||
22 | # Add the ABI dependency at package generation time, as otherwise bitbake will | ||
23 | # attempt to find a provider for it (and fail) when it does the parse. | ||
24 | # | ||
25 | # This version *must* be kept correct. | ||
26 | python populate_packages_prepend() { | ||
27 | pn = d.getVar("PN", True) | ||
28 | d.appendVar("RDEPENDS_" + pn, " xorg-abi-video-8") | ||
29 | } | ||
30 | |||
31 | SRC_URI = "https://edc.intel.com/Download.aspx?id=6190;downloadfilename=LIN_IEMGD_1_14_GOLD_2443.tgz" | ||
32 | |||
33 | SRC_URI[md5sum] = "733a7f237ffce21238ce2c9956df4fd6" | ||
34 | SRC_URI[sha256sum] = "bcdc333b5edbda7c746a83ef821ded4a0ca55ead30980e4e3680cdb6469f45a2" | ||
35 | |||
36 | # make sure generated rpm packages get non conflicting names | ||
37 | PKG_${PN} = "emgd-driver" | ||
38 | PKG_${PN}-dev = "emgd-driver-dev" | ||
39 | PKG_${PN}-dbg = "emgd-driver-dbg" | ||
40 | PKG_${PN}-doc = "emgd-driver-doc" | ||
41 | |||
42 | PACKAGES =+ "emgd-libmixcommon emgd-libmixvideo emgd-libmixvbp \ | ||
43 | emgd-gst-vabuffer emgd-gst-plugins-mixvideo \ | ||
44 | emgd-gst-plugins-va emgd-driver-video" | ||
45 | |||
46 | # These are closed binaries generated elsewhere so don't check ldflags & text relocations | ||
47 | INSANE_SKIP_emgd-driver-video = "ldflags textrel" | ||
48 | # Inhibit warnings about files being stripped, we can't do anything about it. | ||
49 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
50 | |||
51 | # Avoid auto renaming of there packages | ||
52 | DEBIAN_NOAUTONAME_emgd-libmixcommon = "1" | ||
53 | DEBIAN_NOAUTONAME_emgd-libmixvideo = "1" | ||
54 | DEBIAN_NOAUTONAME_emgd-libmixvbp = "1" | ||
55 | DEBIAN_NOAUTONAME_emgd-gst-vabuffer = "1" | ||
56 | |||
57 | FILES_emgd-libmixcommon = "${libdir}/libmixcommon.so.0.10.8 ${libdir}/libmixcommon.so.0" | ||
58 | FILES_emgd-libmixvideo = "${libdir}/libmixvideo.so.0.10.9 ${libdir}/libmixvideo.so.0" | ||
59 | FILES_emgd-libmixvbp = "${libdir}/libmixvbp.so.0.10.8 ${libdir}/libmixvbp.so.0 \ | ||
60 | ${libdir}/libmixvbp_h264.so.0.10.8 ${libdir}/libmixvbp_h264.so.0 \ | ||
61 | ${libdir}/libmixvbp_mpeg4.so.0.10.8 ${libdir}/libmixvbp_mpeg4.so.0 \ | ||
62 | ${libdir}/libmixvbp_vc1.so.0.10.8 ${libdir}/libmixvbp_vc1.so.0 " | ||
63 | FILES_emgd-gst-vabuffer = "${libdir}/libgstvabuffer.so.0.10.8 ${libdir}/libgstvabuffer.so.0" | ||
64 | FILES_emgd-gst-plugins-mixvideo = "${libdir}/gstreamer-0.10/libgstmixvideoplugin.so" | ||
65 | FILES_emgd-gst-plugins-va = "${libdir}/gstreamer-0.10/libgstvaplugin.so" | ||
66 | FILES_emgd-driver-video = "${libdir}/dri/emgd_drv_video.so" | ||
67 | FILES_${PN} += "${libdir}/dri ${libdir}/xorg/modules/drivers" | ||
68 | FILES_${PN}-dbg += "${libdir}/xorg/modules/drivers/.debug ${libdir}/dri/.debug ${libdir}/gstreamer-0.10/.debug" | ||
69 | |||
70 | S = "${WORKDIR}/${EMGD_RPM_DIR}" | ||
71 | |||
72 | do_install () { | ||
73 | # cleanup previous files if any | ||
74 | rm -rf usr | ||
75 | |||
76 | # A gstreamer VA buffer library | ||
77 | rpm2cpio ${S}/${EMGD_VIDEO_PLUGIN_DIR}/gst-vabuffer*.rpm | cpio -id | ||
78 | |||
79 | # MIX Common contains common classes, datatype, header files used by other MIX components | ||
80 | rpm2cpio ${S}/${EMGD_VIDEO_PLUGIN_DIR}/mixcommon*.rpm | cpio -id | ||
81 | |||
82 | # MIX Video Bitstream Parser is an user library interface for various video format bitstream parsing | ||
83 | rpm2cpio ${S}/${EMGD_VIDEO_PLUGIN_DIR}/mixvbp*.rpm | cpio -id | ||
84 | |||
85 | # MIX Video is an user library interface for various video codecs available on the platform. | ||
86 | rpm2cpio ${S}/${EMGD_VIDEO_PLUGIN_DIR}/mixvideo*.rpm | cpio -id | ||
87 | |||
88 | install -d -m 0755 ${D}${libdir}/gstreamer-0.10 | ||
89 | install -m 0755 ${S}/usr/lib/* ${D}${libdir}/ | ||
90 | |||
91 | # A gstreamer plugin that uses MIX Video for hardware accelerated video decoding and rendering. | ||
92 | rpm2cpio ${S}/${EMGD_VIDEO_PLUGIN_DIR}/gst-plugins-mixvideo*.rpm | cpio -id | ||
93 | |||
94 | # A collection of gstreamer plugins that uses VA libraries for hardware accelerated video rendering and text overlay. | ||
95 | rpm2cpio ${S}/${EMGD_VIDEO_PLUGIN_DIR}/gst-plugins-va*.rpm | cpio -id | ||
96 | |||
97 | install -m 0755 ${S}/usr/lib/gstreamer-0.10/* ${D}${libdir}/gstreamer-0.10/ | ||
98 | |||
99 | # EMGD runtime graphics libraries | ||
100 | rpm2cpio ${S}/emgd-bin*.rpm | xz -d | cpio -id | ||
101 | |||
102 | install -d -m 0755 ${D}${libdir}/dri | ||
103 | install -d -m 0755 ${D}${libdir}/xorg/modules/drivers | ||
104 | install -d -m 0755 ${D}${sysconfdir} | ||
105 | install -d -m 0755 ${D}${mandir}/man4 | ||
106 | install -m 0755 ${S}/usr/lib/*.so.* ${D}${libdir}/ | ||
107 | install -m 0755 ${S}/usr/lib/dri/* ${D}${libdir}/dri/ | ||
108 | install -m 0755 ${S}/usr/lib/xorg/modules/drivers/* ${D}${libdir}/xorg/modules/drivers/ | ||
109 | install -m 0755 ${S}/etc/* ${D}${sysconfdir}/ | ||
110 | install -m 0755 ${S}/usr/share/man/man4/* ${D}${mandir}/man4/ | ||
111 | |||
112 | # Khronos development headers needed for EGL, OpenGL-ES, and OpenVG development | ||
113 | rpm2cpio ${S}/emgd-devel*.rpm | xz -d | cpio -id | ||
114 | |||
115 | install -d -m 0755 ${D}${includedir}/EGL | ||
116 | install -m 0755 ${S}/usr/include/EGL/*.h ${D}${includedir}/EGL/ | ||
117 | install -d -m 0755 ${D}${includedir}/GLES | ||
118 | install -m 0755 ${S}/usr/include/GLES/*.h ${D}${includedir}/GLES/ | ||
119 | install -d -m 0755 ${D}${includedir}/GLES2 | ||
120 | install -m 0755 ${S}/usr/include/GLES2/*.h ${D}${includedir}/GLES2/ | ||
121 | install -d -m 0755 ${D}${includedir}/KHR | ||
122 | install -m 0755 ${S}/usr/include/KHR/*.h ${D}${includedir}/KHR/ | ||
123 | install -d -m 0755 ${D}${includedir}/VG | ||
124 | install -m 0755 ${S}/usr/include/VG/*.h ${D}${includedir}/VG/ | ||
125 | |||
126 | EMGD_SNAPSHOT="1.5.15.3226" | ||
127 | ln -sf libEGL.so.${EMGD_SNAPSHOT} ${D}${libdir}/libEGL.so.1 | ||
128 | ln -sf libEGL.so.1 ${D}${libdir}/libEGL.so | ||
129 | ln -sf libGLES_CM.so.${EMGD_SNAPSHOT} ${D}${libdir}/libGLES_CM.so.1 | ||
130 | ln -sf libGLES_CM.so.1 ${D}${libdir}/libGLES_CM.so | ||
131 | ln -sf libGLESv2.so.${EMGD_SNAPSHOT} ${D}${libdir}/libGLESv2.so.2 | ||
132 | ln -sf libGLESv2.so.2 ${D}${libdir}/libGLESv2.so | ||
133 | ln -sf libOpenVG.so.${EMGD_SNAPSHOT} ${D}${libdir}/libOpenVG.so.1 | ||
134 | ln -sf libOpenVG.so.1 ${D}${libdir}/libOpenVG.so | ||
135 | ln -sf libOpenVGU.so.${EMGD_SNAPSHOT} ${D}${libdir}/libOpenVGU.so.1 | ||
136 | ln -sf libOpenVGU.so.1 ${D}${libdir}/libOpenVGU.so | ||
137 | ln -sf libEMGD2d.so.${EMGD_SNAPSHOT} ${D}${libdir}/libEMGD2d.so | ||
138 | ln -sf libEMGDegl.so.${EMGD_SNAPSHOT} ${D}${libdir}/libEMGDegl.so | ||
139 | ln -sf libemgdglslcompiler.so.${EMGD_SNAPSHOT} ${D}${libdir}/libemgdglslcompiler.so | ||
140 | ln -sf libEMGDOGL.so.${EMGD_SNAPSHOT} ${D}${libdir}/libEMGDOGL.so | ||
141 | ln -sf libemgdPVR2D_DRIWSEGL.so.${EMGD_SNAPSHOT} ${D}${libdir}/libemgdPVR2D_DRIWSEGL.so | ||
142 | ln -sf libEMGDScopeServices.so.${EMGD_SNAPSHOT} ${D}${libdir}/libEMGDScopeServices.so | ||
143 | ln -sf libemgdsrv_init.so.${EMGD_SNAPSHOT} ${D}${libdir}/libemgdsrv_init.so | ||
144 | ln -sf libemgdsrv_um.so.${EMGD_SNAPSHOT} ${D}${libdir}/libemgdsrv_um.so | ||
145 | |||
146 | #Replace duplicate files with symlinks | ||
147 | rm -f ${D}${libdir}/libmixvideo.so.0 | ||
148 | ln -sf libmixvideo.so.0.10.9 ${D}${libdir}/libmixvideo.so.0 | ||
149 | rm -f ${D}${libdir}/libmixvbp_h264.so.0 | ||
150 | ln -sf libmixvbp_h264.so.0.10.8 ${D}${libdir}/libmixvbp_h264.so.0 | ||
151 | rm -f ${D}${libdir}/libmixvbp.so.0 | ||
152 | ln -sf libmixvbp.so.0.10.8 ${D}${libdir}/libmixvbp.so.0 | ||
153 | rm -f ${D}${libdir}/libmixvbp_vc1.so.0 | ||
154 | ln -sf libmixvbp_vc1.so.0.10.8 ${D}${libdir}/libmixvbp_vc1.so.0 | ||
155 | rm -f ${D}${libdir}/libmixvbp_mpeg4.so.0 | ||
156 | ln -sf libmixvbp_mpeg4.so.0.10.8 ${D}${libdir}/libmixvbp_mpeg4.so.0 | ||
157 | rm -f ${D}${libdir}/libmixcommon.so.0 | ||
158 | ln -sf libmixcommon.so.0.10.8 ${D}${libdir}/libmixcommon.so.0 | ||
159 | rm -f ${D}${libdir}/libgstvabuffer.so.0 | ||
160 | ln -sf libgstvabuffer.so.0.10.8 ${D}${libdir}/libgstvabuffer.so.0 | ||
161 | } | ||
162 | |||
163 | LEAD_SONAME = "libEGL.so" | ||