summaryrefslogtreecommitdiffstats
path: root/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb
diff options
context:
space:
mode:
authorRahul Saxena <rahul.saxena@intel.com>2012-09-12 20:57:08 (GMT)
committerTom Zanussi <tom.zanussi@intel.com>2012-09-15 19:56:30 (GMT)
commit164e0c7418229a38d7c97cd6bb3117a89869f6a4 (patch)
treede978909220dcab71fbbf4ef7b7573da557bae20 /meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb
parent946e5c116c2843ca2b96b40cc53b5b04701233bb (diff)
downloadmeta-intel-164e0c7418229a38d7c97cd6bb3117a89869f6a4.tar.gz
meta-cedartrail: Update PVR graphics driver to version 1.0.3
This driver update fixes a memory leak bug Signed-off-by: Rahul Saxena <rahul.saxena@intel.com>
Diffstat (limited to 'meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb')
-rw-r--r--meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb147
1 files changed, 147 insertions, 0 deletions
diff --git a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb
new file mode 100644
index 0000000..63d9203
--- /dev/null
+++ b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.3.bb
@@ -0,0 +1,147 @@
1SUMMARY = "Cedartrail PowerVR Graphics Driver version 1.0.3 binaries"
2DESCRIPTION = "2D, 3D and Media user space driver for Cedartrail platform \
3The binaries are covered by the Intel Free Distribution Binary License. \
4The user must make himself/herself aware of the Licensing terms \
5before enabling build of the Cedartrail PowerVR Graphics Driver via \
6this recipe. Please see the README in meta-cedartrail for instructions \
7for enabling the build of the driver "
8
9LICENSE_FLAGS = "license_${PN}_${PV}"
10LICENSE = "Intel Free Distribution Binary License"
11LIC_FILES_CHKSUM = " \
12 file://${S}/usr/share/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65 \
13 file://${S}/usr/share/doc/pvr-bin-cdv-${PVR-BIN-REV_LIC}/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65"
14
15DEPENDS = "rpm-native libva"
16
17PR = "r1"
18
19PSB-VIDEO = "psb-video-cdv-1.0.3-1.1.i586.rpm"
20PSB-VIDEO-REV = "1.0.3"
21
22PVR-BIN = "pvr-bin-cdv-1.0.3-1.1.i586.rpm"
23PVR-BIN-REV = "1.7.862890"
24PVR-BIN-REV_N = "1.7.862890_05"
25PVR-BIN-REV_LIC = "1.0.3"
26
27LIBWSBM = "libwsbm-cdv-1.1.0-3.1.i586.rpm"
28
29
30NON-OSS-PATH = "http://repo.meego.com/MeeGo/updates/1.2.0/repos/non-oss/ia32/packages/"
31OSS-PATH = "http://repo.meego.com/MeeGo/updates/1.2.0/repos/oss/ia32/packages/"
32
33
34SRC_URI = "${NON-OSS-PATH}${PSB-VIDEO};name=psbrpm \
35 ${NON-OSS-PATH}${PVR-BIN};name=pvrrpm \
36 ${OSS-PATH}${LIBWSBM};name=wsbmrpm \
37 "
38SRC_URI[pvrrpm.md5sum] = "3ae7db98825af642445f75f4b5ddb303"
39SRC_URI[pvrrpm.sha256sum] = "42b97e5d663444f35b1ee51cdf9573e3b1d5a4f49ae854218c5c4c9a66ba95cf"
40
41SRC_URI[psbrpm.md5sum] = "ec486193dc4b3f91bc7c5e18d9ca9d8a"
42SRC_URI[psbrpm.sha256sum] = "0861d69b44d5ce29a3f778ac82976a22f7726af84d9b2e5438c18da5263ffdac"
43
44SRC_URI[wsbmrpm.md5sum] = "b8b21ca8325abd7850d197f9bf3071c7"
45SRC_URI[wsbmrpm.sha256sum] = "f436386967c1adec5211e662251bd542bbe0b8cd55e1d9f9c203da5ee934d4f0"
46
47S = "${WORKDIR}/cdv-graphics-drivers_${PV}"
48
49# These are closed binaries generated elsewhere so don't check ldflags
50INSANE_SKIP_${PN} = "ldflags"
51
52# .so files in these binaries are not symlinks. Rearange package order
53# so that they go to ${PN} instead of $PN}-dev
54PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN} ${PN}-dev ${PN}-doc ${PN}-locale"
55
56
57FILES_${PN} += "${libdir}/dri ${libdir}/pvr/cdv/dri ${libdir}/pvr/cdv ${libdir}/xorg/modules/drivers"
58
59FILES_${PN} += "${base_libdir}/firmware"
60FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d"
61
62FILES_${PN} += "${libdir}/lib*.so"
63
64FILES_${PN} += "${libdir}/pvr/cdv/xorg/modules/drivers"
65
66FILES_${PN} += "${datadir}/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt"
67FILES_${PN} += "${datadir}/doc/pvr-bin-cdv-${PVR-BIN-REV_LIC}/license.txt"
68
69
70TARGET_CC_ARCH += "${CFLAGS}{LDFLAGS}"
71INSANE_SKIP_${PN} += "ldflags"
72INSANE_SKIP_${PN}-dbg += "ldflags"
73
74do_configure () {
75
76# Extract license files from rpms
77rpm2cpio.sh ${WORKDIR}/${PSB-VIDEO} |cpio -ivd ./usr/share/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt
78rpm2cpio.sh ${WORKDIR}/${PVR-BIN} |cpio -ivd ./usr/share/doc/pvr-bin-cdv-${PVR-BIN-REV_LIC}/license.txt
79
80}
81
82do_install() {
83
84 mv ${WORKDIR}/*.rpm ${S}
85
86 rpm2cpio.sh ${S}/${LIBWSBM} | cpio -id
87
88 install -d -m 0755 ${D}${libdir}/dri
89
90 install -m 0755 ${S}/usr/lib/* ${D}${libdir}/
91
92 rpm2cpio.sh ${S}/${PSB-VIDEO} | cpio -id
93
94 install -d -m 0755 ${D}${base_libdir}/firmware
95
96 install -m 0755 ${S}/usr/lib/dri/* ${D}${libdir}/dri/
97
98 install -m 0755 ${S}/lib/firmware/* ${D}${base_libdir}/firmware
99
100 rpm2cpio.sh ${S}/${PVR-BIN} | cpio -id
101
102 install -d -m 0755 ${D}${libdir}/pvr/cdv/dri
103
104 install -m 0755 ${S}/usr/lib/pvr/cdv/dri/* ${D}${libdir}/pvr/cdv/dri
105
106 install -d -m 0755 ${D}${sysconfdir}/X11/xorg.conf.d
107 install -m 0755 ${S}/etc/powervr.ini ${D}${sysconfdir}/
108 install -m 0755 ${S}/etc/X11/xorg.conf.d/* ${D}${sysconfdir}/X11/xorg.conf.d/
109 install -m 0755 ${S}/usr/lib/dri/pvr_dri.so ${D}${libdir}/dri/
110 install -m 0755 ${S}/usr/lib/*.so.* ${D}${libdir}/
111
112
113 install -m 0755 ${S}/usr/lib/libegl4ogl.so.${PVR-BIN-REV} ${D}${libdir}/libegl4ogl.so
114 install -m 0755 ${S}/usr/lib/libEGL.so.${PVR-BIN-REV} ${D}${libdir}/libEGL.so
115 install -m 0755 ${S}/usr/lib/libGLES_CM.so.${PVR-BIN-REV} ${D}${libdir}/libGLES_CM.so
116 install -m 0755 ${S}/usr/lib/libGLES_CM.so.${PVR-BIN-REV} ${D}${libdir}/libGLESv1_CM.so
117 install -m 0755 ${S}/usr/lib/libGLESv2.so.${PVR-BIN-REV} ${D}${libdir}/libGLESv2.so
118 install -m 0755 ${S}/usr/lib/libglslcompiler.so.${PVR-BIN-REV} ${D}${libdir}/libglslcompiler.so
119 install -m 0755 ${S}/usr/lib/libIMGegl.so.${PVR-BIN-REV} ${D}${libdir}/libIMGegl.so
120 install -m 0755 ${S}/usr/lib/libOpenVG.so.${PVR-BIN-REV} ${D}${libdir}/libOpenVG.so
121 install -m 0755 ${S}/usr/lib/libOpenVGU.so.${PVR-BIN-REV} ${D}${libdir}/libOpenVGU.so
122 install -m 0755 ${S}/usr/lib/libpvr2d.so.${PVR-BIN-REV} ${D}${libdir}/libpvr2d.so
123 install -m 0755 ${S}/usr/lib/libPVROGL_MESA.so.${PVR-BIN-REV} ${D}${libdir}/libPVROGL_MESA.so
124 install -m 0755 ${S}/usr/lib/libpvrPVR2D_BLITWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_BLITWSEGL.so
125 install -m 0755 ${S}/usr/lib/libpvrPVR2D_DRIWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so
126 install -m 0755 ${S}/usr/lib/libpvrPVR2D_FLIPWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_FLIPWSEGL.so
127 install -m 0755 ${S}/usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_LINUXFBWSEGL.so
128 install -m 0755 ${S}/usr/lib/libPVRScopeServices.so.${PVR-BIN-REV} ${D}${libdir}/libPVRScopeServices.so
129 install -m 0755 ${S}/usr/lib/libsrv_init.so.${PVR-BIN-REV} ${D}${libdir}/libsrv_init.so
130 install -m 0755 ${S}/usr/lib/libsrv_um.so.${PVR-BIN-REV} ${D}${libdir}/libsrv_um.so
131 install -m 0755 ${S}/usr/lib/libusc.so.${PVR-BIN-REV} ${D}${libdir}/libusc.so
132
133 install -m 0755 ${S}/usr/lib/pvr/cdv/*.so.* ${D}${libdir}/pvr/cdv/
134
135 install -d -m 0755 ${D}${libdir}/pvr/cdv/xorg/modules/drivers
136 install -m 0755 ${S}/usr/lib/pvr/cdv/xorg/modules/drivers/* ${D}${libdir}/pvr/cdv/xorg/modules/drivers/
137
138 install -d -m 0755 ${D}${libdir}/xorg/modules/drivers
139
140 install -m 0755 ${S}/usr/lib/xorg/modules/drivers/* ${D}${libdir}/xorg/modules/drivers/
141
142 install -d -m 0755 ${D}${datadir}/doc/psb-video-cdv-${PSB-VIDEO-REV}
143 install -d -m 0755 ${D}${datadir}/doc/pvr-bin-cdv-${PVR-BIN-REV_N}
144
145 install -m 0755 ${S}/usr/share/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt ${D}${datadir}/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt
146
147}