summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Saxena <rahul.saxena@intel.com>2012-08-20 20:45:35 (GMT)
committerDarren Hart <dvhart@linux.intel.com>2012-08-20 22:25:25 (GMT)
commit63f88d16e50384ffab41b548af0ad9b536d22069 (patch)
treef8c60da92e13278e11dcc43a06169c6f8b97d3d1
parent8f26f8b628205fe6d39955c9ddf74ae89da38c61 (diff)
downloadmeta-intel-63f88d16e50384ffab41b548af0ad9b536d22069.tar.gz
meta-cedartrail: Update PVR graphics driver to version 1.0.2
This update of the driver enables support for B3 stepping of Cedarview processor and also support for DP/eDP ports. Signed-off-by: Rahul Saxena <rahul.saxena@intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rwxr-xr-xmeta-cedartrail/README2
-rw-r--r--meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc37
-rw-r--r--meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.2.bb139
-rw-r--r--meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.bb99
4 files changed, 140 insertions, 137 deletions
diff --git a/meta-cedartrail/README b/meta-cedartrail/README
index 493e831..715cad9 100755
--- a/meta-cedartrail/README
+++ b/meta-cedartrail/README
@@ -61,7 +61,7 @@ Power VR Graphics user-space driver binaries are covered by a
61"Intel Free Distribution Binary License". The build of this driver 61"Intel Free Distribution Binary License". The build of this driver
62can be enabled by adding the following line to the local.conf file: 62can be enabled by adding the following line to the local.conf file:
63 63
64LICENSE_FLAGS_WHITELIST += "license_cdv-pvr-driver_1.0" 64LICENSE_FLAGS_WHITELIST += "license_cdv-pvr-driver_1.0.2"
65 65
66To enable the layer that does not support Power VR graphics 66To enable the layer that does not support Power VR graphics
67add the following to the local.conf file: 67add the following to the local.conf file:
diff --git a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc
deleted file mode 100644
index 787c1fb..0000000
--- a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc
+++ /dev/null
@@ -1,37 +0,0 @@
1SUMMARY = "Cedartrail PowerVR Graphics Driver version [Gold] 1.0 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"
11
12LIC_FILES_CHKSUM = " \
13 file://${S}/usr/share/doc/psb-video-cdv-0.16/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65 \
14 file://${S}/usr/share/doc/pvr-bin-cdv-1.7.788837_10/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65"
15
16INC_PR = "r1"
17
18DEPENDS = "rpm-native"
19
20FILES_${PN} += "${libdir}/dri ${libdir}/pvr/cdv/dri ${libdir}/pvr/cdv ${libdir}/xorg/modules/drivers"
21FILES_${PN}-dev += "${libdir}/dri ${libdir}/pvr/cdv/dri ${libdir}/xorg/modules/drivers"
22FILES_${PN}-dbg += "${libdir}/xorg/modules/drivers/.debug ${libdir}/dri/.debug ${libdir}/pvr/cdv/dri/.debug"
23
24FILES_${PN} += "${base_libdir}/firmware"
25FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d"
26
27FILES_${PN} += "${libdir}/lib*.so"
28FILES_${PN}-dev += "${libdir}/lib*.so"
29FILES_${PN}-dbg += "${libdir}/.debug"
30
31FILES_${PN} += "${libdir}/pvr/cdv/xorg/modules/drivers"
32
33FILES_${PN} += "${datadir}/doc/psb-video-cdv-0.16/license.txt"
34FILES_${PN} += "${datadir}/doc/pvr-bin-cdv-1.7.788837_10/license.txt"
35
36
37
diff --git a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.2.bb b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.2.bb
new file mode 100644
index 0000000..f91b235
--- /dev/null
+++ b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.2.bb
@@ -0,0 +1,139 @@
1SUMMARY = "Cedartrail PowerVR Graphics Driver version 1.0.2 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_N}/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65"
14
15DEPENDS = "rpm-native libva"
16
17PR = "r0"
18
19PSB-VIDEO = "psb-video-cdv-0.17-2.1.i586.rpm"
20PSB-VIDEO-REV = "0.17"
21
22PVR-BIN = "pvr-bin-cdv-1.7.862890_05-1.1.i586.rpm"
23PVR-BIN-REV = "1.7.862890"
24PVR-BIN-REV_N = "1.7.862890_05"
25
26LIBWSBM = "libwsbm-cdv-1.1.0-3.1.i586.rpm"
27
28
29NON-OSS-PATH = "http://repo.meego.com/MeeGo/builds/1.2.0/1.2.0.10.1.20120723.1/repos/non-oss/ia32/packages/"
30OSS-PATH = "http://repo.meego.com/MeeGo/updates/1.2.0/repos/oss/ia32/packages/"
31
32
33SRC_URI = "${NON-OSS-PATH}${PSB-VIDEO};name=psbrpm \
34 ${NON-OSS-PATH}${PVR-BIN};name=pvrrpm \
35 ${OSS-PATH}${LIBWSBM};name=wsbmrpm \
36 "
37SRC_URI[pvrrpm.md5sum] = "92dbb85a259dff73c6e4de68d158ef10"
38SRC_URI[pvrrpm.sha256sum] = "46356021efa990cde367b2cdec8626db8c1457234771c6459a106b8342c549c1"
39
40SRC_URI[psbrpm.md5sum] = "0300f7485306bb039ee33e6238a00ae3"
41SRC_URI[psbrpm.sha256sum] = "8e71f2ff7464b20823d7f552729d39cb9e3d75badc9b206d43bcc2429849f6c0"
42
43SRC_URI[wsbmrpm.md5sum] = "b8b21ca8325abd7850d197f9bf3071c7"
44SRC_URI[wsbmrpm.sha256sum] = "f436386967c1adec5211e662251bd542bbe0b8cd55e1d9f9c203da5ee934d4f0"
45
46S = "${WORKDIR}/cdv-graphics-drivers_${PV}"
47
48FILES_${PN} += "${libdir}/dri ${libdir}/pvr/cdv/dri ${libdir}/pvr/cdv ${libdir}/xorg/modules/drivers"
49
50FILES_${PN} += "${base_libdir}/firmware"
51FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d"
52
53FILES_${PN} += "${libdir}/lib*.so"
54
55FILES_${PN} += "${libdir}/pvr/cdv/xorg/modules/drivers"
56
57FILES_${PN} += "${datadir}/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt"
58FILES_${PN} += "${datadir}/doc/pvr-bin-cdv-${PVR-BIN-REV_N}/license.txt"
59
60
61TARGET_CC_ARCH += "${CFLAGS}{LDFLAGS}"
62INSANE_SKIP_${PN} += "ldflags"
63INSANE_SKIP_${PN}-dbg += "ldflags"
64
65do_configure () {
66
67# Extract license files from rpms
68rpm2cpio.sh ${WORKDIR}/${PSB-VIDEO} |cpio -ivd ./usr/share/doc/psb-video-cdv-${PSB-VIDEO-REV}/license.txt
69rpm2cpio.sh ${WORKDIR}/${PVR-BIN} |cpio -ivd ./usr/share/doc/pvr-bin-cdv-${PVR-BIN-REV_N}/license.txt
70
71}
72
73do_install() {
74
75 mv ${WORKDIR}/*.rpm ${S}
76
77 rpm2cpio.sh ${S}/${LIBWSBM} | cpio -id
78
79 install -d -m 0755 ${D}${libdir}/dri
80
81 install -m 0755 ${S}/usr/lib/* ${D}${libdir}/
82
83 rpm2cpio.sh ${S}/${PSB-VIDEO} | cpio -id
84
85 install -d -m 0755 ${D}${base_libdir}/firmware
86
87 install -m 0755 ${S}/usr/lib/dri/* ${D}${libdir}/dri/
88
89 install -m 0755 ${S}/lib/firmware/* ${D}${base_libdir}/firmware
90
91 rpm2cpio.sh ${S}/${PVR-BIN} | cpio -id
92
93 install -d -m 0755 ${D}${libdir}/pvr/cdv/dri
94
95 install -m 0755 ${S}/usr/lib/pvr/cdv/dri/* ${D}${libdir}/pvr/cdv/dri
96
97 install -d -m 0755 ${D}${sysconfdir}/X11/xorg.conf.d
98 install -m 0755 ${S}/etc/powervr.ini ${D}${sysconfdir}/
99 install -m 0755 ${S}/etc/X11/xorg.conf.d/* ${D}${sysconfdir}/X11/xorg.conf.d/
100 install -m 0755 ${S}/usr/lib/dri/pvr_dri.so ${D}${libdir}/dri/
101 install -m 0755 ${S}/usr/lib/*.so.* ${D}${libdir}/
102
103
104 install -m 0755 ${S}/usr/lib/libegl4ogl.so.${PVR-BIN-REV} ${D}${libdir}/libegl4ogl.so
105 install -m 0755 ${S}/usr/lib/libEGL.so.${PVR-BIN-REV} ${D}${libdir}/libEGL.so
106 install -m 0755 ${S}/usr/lib/libGLES_CM.so.${PVR-BIN-REV} ${D}${libdir}/libGLES_CM.so
107 install -m 0755 ${S}/usr/lib/libGLES_CM.so.${PVR-BIN-REV} ${D}${libdir}/libGLESv1_CM.so
108 install -m 0755 ${S}/usr/lib/libGLESv2.so.${PVR-BIN-REV} ${D}${libdir}/libGLESv2.so
109 install -m 0755 ${S}/usr/lib/libglslcompiler.so.${PVR-BIN-REV} ${D}${libdir}/libglslcompiler.so
110 install -m 0755 ${S}/usr/lib/libIMGegl.so.${PVR-BIN-REV} ${D}${libdir}/libIMGegl.so
111 install -m 0755 ${S}/usr/lib/libOpenVG.so.${PVR-BIN-REV} ${D}${libdir}/libOpenVG.so
112 install -m 0755 ${S}/usr/lib/libOpenVGU.so.${PVR-BIN-REV} ${D}${libdir}/libOpenVGU.so
113 install -m 0755 ${S}/usr/lib/libpvr2d.so.${PVR-BIN-REV} ${D}${libdir}/libpvr2d.so
114 install -m 0755 ${S}/usr/lib/libPVROGL_MESA.so.${PVR-BIN-REV} ${D}${libdir}/libPVROGL_MESA.so
115 install -m 0755 ${S}/usr/lib/libpvrPVR2D_BLITWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_BLITWSEGL.so
116 install -m 0755 ${S}/usr/lib/libpvrPVR2D_DRIWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so
117 install -m 0755 ${S}/usr/lib/libpvrPVR2D_FLIPWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_FLIPWSEGL.so
118 install -m 0755 ${S}/usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.${PVR-BIN-REV} ${D}${libdir}/libpvrPVR2D_LINUXFBWSEGL.so
119 install -m 0755 ${S}/usr/lib/libPVRScopeServices.so.${PVR-BIN-REV} ${D}${libdir}/libPVRScopeServices.so
120 install -m 0755 ${S}/usr/lib/libsrv_init.so.${PVR-BIN-REV} ${D}${libdir}/libsrv_init.so
121 install -m 0755 ${S}/usr/lib/libsrv_um.so.${PVR-BIN-REV} ${D}${libdir}/libsrv_um.so
122 install -m 0755 ${S}/usr/lib/libusc.so.${PVR-BIN-REV} ${D}${libdir}/libusc.so
123
124 install -m 0755 ${S}/usr/lib/pvr/cdv/*.so.* ${D}${libdir}/pvr/cdv/
125
126 install -d -m 0755 ${D}${libdir}/pvr/cdv/xorg/modules/drivers
127 install -m 0755 ${S}/usr/lib/pvr/cdv/xorg/modules/drivers/* ${D}${libdir}/pvr/cdv/xorg/modules/drivers/
128
129 install -d -m 0755 ${D}${libdir}/xorg/modules/drivers
130
131 install -m 0755 ${S}/usr/lib/xorg/modules/drivers/* ${D}${libdir}/xorg/modules/drivers/
132
133 install -d -m 0755 ${D}${datadir}/doc/psb-video-cdv-${PSB-VIDEO-REV}
134 install -d -m 0755 ${D}${datadir}/doc/pvr-bin-cdv-${PVR-BIN-REV_N}
135
136 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
137 install -m 0755 ${S}/usr/share/doc/pvr-bin-cdv-${PVR-BIN-REV_N}/license.txt ${D}${datadir}/doc/pvr-bin-cdv-${PVR-BIN-REV_N}/license.txt
138
139}
diff --git a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.bb b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.bb
deleted file mode 100644
index 9af0eb8..0000000
--- a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.bb
+++ /dev/null
@@ -1,99 +0,0 @@
1require cdv-pvr-driver.inc
2
3PR = "${INC_PR}.1"
4
5DEPENDS = "libva"
6
7SRC_URI = "http://repo.meego.com/MeeGo/updates/1.2.0/repos/non-oss/ia32/packages/psb-video-cdv-0.16-1.1.i586.rpm;name=psbrpm \
8 http://repo.meego.com/MeeGo/updates/1.2.0/repos/non-oss/ia32/packages/pvr-bin-cdv-1.7.788837_10-1.1.i586.rpm;name=pvrrpm \
9 http://repo.meego.com/MeeGo/updates/1.2.0/repos/oss/ia32/packages/libwsbm-cdv-1.1.0-3.1.i586.rpm;name=wsbmrpm \
10 "
11SRC_URI[pvrrpm.md5sum] = "06dbacd7f0f5bb10132eb5477ae9267a"
12SRC_URI[pvrrpm.sha256sum] = "1e42c57485e46a1712e26f48df44a2f5305a82ca98afc5bf4f90a93c9631f509"
13
14SRC_URI[psbrpm.md5sum] = "fd213baa2af33d35e8b552e586b02b90"
15SRC_URI[psbrpm.sha256sum] = "cda281798ebbd280b6d2caf2a09961db0d719f929b808c6360c81db323aeee71"
16
17SRC_URI[wsbmrpm.md5sum] = "b8b21ca8325abd7850d197f9bf3071c7"
18SRC_URI[wsbmrpm.sha256sum] = "f436386967c1adec5211e662251bd542bbe0b8cd55e1d9f9c203da5ee934d4f0"
19
20
21S = "${WORKDIR}/cdv-graphics-drivers_${PV}"
22
23do_configure () {
24
25# Extract license files from rpms
26rpm2cpio ${WORKDIR}/psb-video-cdv-0.16-1.1.i586.rpm |cpio -ivd ./usr/share/doc/psb-video-cdv-0.16/license.txt
27rpm2cpio ${WORKDIR}/pvr-bin-cdv-1.7.788837_10-1.1.i586.rpm |cpio -ivd ./usr/share/doc/pvr-bin-cdv-1.7.788837_10/license.txt
28
29}
30
31
32do_install() {
33
34
35 mv ${WORKDIR}/*.rpm ${S}
36
37 rpm2cpio ${S}/libwsbm-cdv-1.1.0-3.1.i586.rpm | cpio -id
38
39 install -d -m 0755 ${D}${libdir}/dri
40
41 install -m 0755 ${S}/usr/lib/* ${D}${libdir}/
42
43 rpm2cpio ${S}/psb-video-cdv-0.16-1.1.i586.rpm | cpio -id
44
45 install -d -m 0755 ${D}${base_libdir}/firmware
46
47 install -m 0755 ${S}/usr/lib/dri/* ${D}${libdir}/dri/
48
49 install -m 0755 ${S}/lib/firmware/* ${D}${base_libdir}/firmware
50
51 rpm2cpio ${S}/pvr-bin-cdv-1.7.788837_10-1.1.i586.rpm | cpio -id
52
53 install -d -m 0755 ${D}${libdir}/pvr/cdv/dri
54
55 install -m 0755 ${S}/usr/lib/pvr/cdv/dri/* ${D}${libdir}/pvr/cdv/dri
56
57 install -d -m 0755 ${D}${sysconfdir}/X11/xorg.conf.d
58 install -m 0755 ${S}/etc/powervr.ini ${D}${sysconfdir}/
59 install -m 0755 ${S}/etc/X11/xorg.conf.d/* ${D}${sysconfdir}/X11/xorg.conf.d/
60 install -m 0755 ${S}/usr/lib/dri/pvr_dri.so ${D}${libdir}/dri/
61 install -m 0755 ${S}/usr/lib/*.so.* ${D}${libdir}/
62
63
64 install -m 0755 ${S}/usr/lib/libegl4ogl.so.1.7.788837 ${D}${libdir}/libegl4ogl.so
65 install -m 0755 ${S}/usr/lib/libEGL.so.1.7.788837 ${D}${libdir}/libEGL.so
66 install -m 0755 ${S}/usr/lib/libGLES_CM.so.1.7.788837 ${D}${libdir}/libGLES_CM.so
67 install -m 0755 ${S}/usr/lib/libGLES_CM.so.1.7.788837 ${D}${libdir}/libGLESv1_CM.so
68 install -m 0755 ${S}/usr/lib/libGLESv2.so.1.7.788837 ${D}${libdir}/libGLESv2.so
69 install -m 0755 ${S}/usr/lib/libglslcompiler.so.1.7.788837 ${D}${libdir}/libglslcompiler.so
70 install -m 0755 ${S}/usr/lib/libIMGegl.so.1.7.788837 ${D}${libdir}/libIMGegl.so
71 install -m 0755 ${S}/usr/lib/libOpenVG.so.1.7.788837 ${D}${libdir}/libOpenVG.so
72 install -m 0755 ${S}/usr/lib/libOpenVGU.so.1.7.788837 ${D}${libdir}/libOpenVGU.so
73 install -m 0755 ${S}/usr/lib/libpvr2d.so.1.7.788837 ${D}${libdir}/libpvr2d.so
74 install -m 0755 ${S}/usr/lib/libPVROGL_MESA.so.1.7.788837 ${D}${libdir}/libPVROGL_MESA.so
75 install -m 0755 ${S}/usr/lib/libpvrPVR2D_BLITWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_BLITWSEGL.so
76 install -m 0755 ${S}/usr/lib/libpvrPVR2D_DRIWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so
77 install -m 0755 ${S}/usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_FLIPWSEGL.so
78 install -m 0755 ${S}/usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_LINUXFBWSEGL.so
79 install -m 0755 ${S}/usr/lib/libPVRScopeServices.so.1.7.788837 ${D}${libdir}/libPVRScopeServices.so
80 install -m 0755 ${S}/usr/lib/libsrv_init.so.1.7.788837 ${D}${libdir}/libsrv_init.so
81 install -m 0755 ${S}/usr/lib/libsrv_um.so.1.7.788837 ${D}${libdir}/libsrv_um.so
82 install -m 0755 ${S}/usr/lib/libusc.so.1.7.788837 ${D}${libdir}/libusc.so
83
84 install -m 0755 ${S}/usr/lib/pvr/cdv/*.so.* ${D}${libdir}/pvr/cdv/
85
86 install -d -m 0755 ${D}${libdir}/pvr/cdv/xorg/modules/drivers
87 install -m 0755 ${S}/usr/lib/pvr/cdv/xorg/modules/drivers/* ${D}${libdir}/pvr/cdv/xorg/modules/drivers/
88
89 install -d -m 0755 ${D}${libdir}/xorg/modules/drivers
90
91 install -m 0755 ${S}/usr/lib/xorg/modules/drivers/* ${D}${libdir}/xorg/modules/drivers/
92
93 install -d -m 0755 ${D}${datadir}/doc/psb-video-cdv-0.16
94 install -d -m 0755 ${D}${datadir}/doc/pvr-bin-cdv-1.7.788837_10
95
96 install -m 0755 ${S}/usr/share/doc/psb-video-cdv-0.16/license.txt ${D}${datadir}/doc/psb-video-cdv-0.16/license.txt
97 install -m 0755 ${S}/usr/share/doc/pvr-bin-cdv-1.7.788837_10/license.txt ${D}${datadir}/doc/pvr-bin-cdv-1.7.788837_10/license.txt
98
99}