summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKishore Bodke <kishore.k.bodke@intel.com>2012-04-10 18:28:02 (GMT)
committerTom Zanussi <tom.zanussi@intel.com>2012-04-12 14:08:07 (GMT)
commit69339827f5c769d3cfcf88904eeea0eb545b786a (patch)
tree354401abc4bfaf8851e313902f805e3745d8cedd
parent629a79a47dfc9d4d1ae5dabce7431bbb7857d6c4 (diff)
downloadmeta-intel-69339827f5c769d3cfcf88904eeea0eb545b786a.tar.gz
Cedartrail: Add PVR graphics support.
New recipe for PVR graphics support. Signed-off-by: Kishore Bodke <kishore.k.bodke@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
-rw-r--r--meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc39
-rw-r--r--meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.bb101
2 files changed, 140 insertions, 0 deletions
diff --git a/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc
new file mode 100644
index 0000000..0de6cbe
--- /dev/null
+++ b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver.inc
@@ -0,0 +1,39 @@
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
9MEEGO_MIRROR = "http://download.meego.com/live/MeeGo:/1.2.0:/CedarTrail:"
10
11LICENSE_FLAGS = "license_${PN}_${PV}"
12LICENSE = "Intel Free Distribution Binary License"
13LIC_FILES_CHKSUM = " \
14 file://${S}/usr/share/doc/psb-video-cdv-0.12/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65 \
15 file://${S}/usr/share/doc/pvr-bin-cdv-1.7.788837_05/license.txt;md5=b14d99f8d4ed664e9ce95057f0bb5b65"
16
17
18INC_PR = "r0"
19
20DEPENDS = "rpm-native"
21
22FILES_${PN} += "${libdir}/dri ${libdir}/pvr/cdv/dri ${libdir}/pvr/cdv ${libdir}/xorg/modules/drivers"
23FILES_${PN}-dev += "${libdir}/dri ${libdir}/pvr/cdv/dri ${libdir}/xorg/modules/drivers"
24FILES_${PN}-dbg += "${libdir}/xorg/modules/drivers/.debug ${libdir}/dri/.debug ${libdir}/pvr/cdv/dri/.debug"
25
26FILES_${PN} += "${base_libdir}/firmware"
27FILES_${PN} += "${sysconfdir}/X11/xorg.conf.d"
28
29FILES_${PN} += "${libdir}/lib*.so"
30FILES_${PN}-dev += "${libdir}/lib*.so"
31FILES_${PN}-dbg += "${libdir}/.debug"
32
33FILES_${PN} += "${libdir}/pvr/cdv/xorg/modules/drivers"
34
35FILES_${PN} += "${datadir}/doc/psb-video-cdv-0.12/license.txt"
36FILES_${PN} += "${datadir}/doc/pvr-bin-cdv-1.7.788837_05/license.txt"
37
38
39
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
new file mode 100644
index 0000000..496da1e
--- /dev/null
+++ b/meta-cedartrail/recipes-graphics/xorg-driver/cdv-pvr-driver_1.0.bb
@@ -0,0 +1,101 @@
1require cdv-pvr-driver.inc
2
3PR = "${INC_PR}.0"
4
5DEPENDS = "libva"
6
7SRC_URI = "${MEEGO_MIRROR}/non-oss/MeeGo_1.2.0_CedarTrail/i586/psb-video-cdv-0.12-1.1.i586.rpm;name=psbrpm \
8 ${MEEGO_MIRROR}/oss/standard/i586/libwsbm-cdv-1.1.0-3.1.i586.rpm;name=wsbmrpm \
9 ${MEEGO_MIRROR}/non-oss/MeeGo_1.2.0_CedarTrail/i586/pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm;name=pvrrpm \
10 "
11
12SRC_URI[pvrrpm.md5sum] = "951fa9edcbc2a3ddb30450079869362e"
13SRC_URI[pvrrpm.sha256sum] = "537dd8a98ac2e3a101063abc62682c3be8c37ac29782a876eafce113ffa5b421"
14
15SRC_URI[psbrpm.md5sum] = "d4b6b383722264f3b781aeb240c88037"
16SRC_URI[psbrpm.sha256sum] = "e88f95fc73a79adf76ee33d3d9874cec23bb1afe8149d7dc5842d67e58da72f5"
17
18SRC_URI[wsbmrpm.md5sum] = "8d90436b151ddf72f620771f2552b597"
19SRC_URI[wsbmrpm.sha256sum] = "82f78f47c151f0e7d567574ee372504e5b395fb13796caa765f9c30754b5bf63"
20
21
22S = "${WORKDIR}/cdv-graphics-drivers_${PV}"
23
24do_configure () {
25
26# Extract license files from rpms
27rpm2cpio ${WORKDIR}/psb-video-cdv-0.12-1.1.i586.rpm |cpio -ivd ./usr/share/doc/psb-video-cdv-0.12/license.txt
28rpm2cpio ${WORKDIR}/pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm |cpio -ivd ./usr/share/doc/pvr-bin-cdv-1.7.788837_05/license.txt
29
30}
31
32
33do_install() {
34
35
36 mv ${WORKDIR}/*.rpm ${S}
37
38 rpm2cpio ${S}/libwsbm-cdv-1.1.0-3.1.i586.rpm | cpio -id
39
40 install -d -m 0755 ${D}${libdir}/dri
41
42 install -m 0755 ${S}/usr/lib/* ${D}${libdir}/
43
44 rpm2cpio ${S}/psb-video-cdv-0.12-1.1.i586.rpm | cpio -id
45
46
47 install -d -m 0755 ${D}${base_libdir}/firmware
48
49 install -m 0755 ${S}/usr/lib/dri/* ${D}${libdir}/dri/
50
51 install -m 0755 ${S}/lib/firmware/* ${D}${base_libdir}/firmware
52
53 rpm2cpio ${S}/pvr-bin-cdv-1.7.788837_05-1.1.i586.rpm | cpio -id
54
55 install -d -m 0755 ${D}${libdir}/pvr/cdv/dri
56
57 install -m 0755 ${S}/usr/lib/pvr/cdv/dri/* ${D}${libdir}/pvr/cdv/dri
58
59 install -d -m 0755 ${D}${sysconfdir}/X11/xorg.conf.d
60 install -m 0755 ${S}/etc/powervr.ini ${D}${sysconfdir}/
61 install -m 0755 ${S}/etc/X11/xorg.conf.d/* ${D}${sysconfdir}/X11/xorg.conf.d/
62 install -m 0755 ${S}/usr/lib/dri/pvr_dri.so ${D}${libdir}/dri/
63 install -m 0755 ${S}/usr/lib/*.so.* ${D}${libdir}/
64
65
66 install -m 0755 ${S}/usr/lib/libegl4ogl.so.1.7.788837 ${D}${libdir}/libegl4ogl.so
67 install -m 0755 ${S}/usr/lib/libEGL.so.1.7.788837 ${D}${libdir}/libEGL.so
68 install -m 0755 ${S}/usr/lib/libGLES_CM.so.1.7.788837 ${D}${libdir}/libGLES_CM.so
69 install -m 0755 ${S}/usr/lib/libGLES_CM.so.1.7.788837 ${D}${libdir}/libGLESv1_CM.so
70 install -m 0755 ${S}/usr/lib/libGLESv2.so.1.7.788837 ${D}${libdir}/libGLESv2.so
71 install -m 0755 ${S}/usr/lib/libglslcompiler.so.1.7.788837 ${D}${libdir}/libglslcompiler.so
72 install -m 0755 ${S}/usr/lib/libIMGegl.so.1.7.788837 ${D}${libdir}/libIMGegl.so
73 install -m 0755 ${S}/usr/lib/libOpenVG.so.1.7.788837 ${D}${libdir}/libOpenVG.so
74 install -m 0755 ${S}/usr/lib/libOpenVGU.so.1.7.788837 ${D}${libdir}/libOpenVGU.so
75 install -m 0755 ${S}/usr/lib/libpvr2d.so.1.7.788837 ${D}${libdir}/libpvr2d.so
76 install -m 0755 ${S}/usr/lib/libPVROGL_MESA.so.1.7.788837 ${D}${libdir}/libPVROGL_MESA.so
77 install -m 0755 ${S}/usr/lib/libpvrPVR2D_BLITWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_BLITWSEGL.so
78 install -m 0755 ${S}/usr/lib/libpvrPVR2D_DRIWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_DRIWSEGL.so
79 install -m 0755 ${S}/usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_FLIPWSEGL.so
80 install -m 0755 ${S}/usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.7.788837 ${D}${libdir}/libpvrPVR2D_LINUXFBWSEGL.so
81 install -m 0755 ${S}/usr/lib/libPVRScopeServices.so.1.7.788837 ${D}${libdir}/libPVRScopeServices.so
82 install -m 0755 ${S}/usr/lib/libsrv_init.so.1.7.788837 ${D}${libdir}/libsrv_init.so
83 install -m 0755 ${S}/usr/lib/libsrv_um.so.1.7.788837 ${D}${libdir}/libsrv_um.so
84 install -m 0755 ${S}/usr/lib/libusc.so.1.7.788837 ${D}${libdir}/libusc.so
85
86 install -m 0755 ${S}/usr/lib/pvr/cdv/*.so.* ${D}${libdir}/pvr/cdv/
87
88 install -d -m 0755 ${D}${libdir}/pvr/cdv/xorg/modules/drivers
89 install -m 0755 ${S}/usr/lib/pvr/cdv/xorg/modules/drivers/* ${D}${libdir}/pvr/cdv/xorg/modules/drivers/
90
91 install -d -m 0755 ${D}${libdir}/xorg/modules/drivers
92
93 install -m 0755 ${S}/usr/lib/xorg/modules/drivers/* ${D}${libdir}/xorg/modules/drivers/
94
95 install -d -m 0755 ${D}${datadir}/doc/psb-video-cdv-0.12
96 install -d -m 0755 ${D}${datadir}/doc/pvr-bin-cdv-1.7.788837_05
97
98 install -m 0755 ${S}/usr/share/doc/psb-video-cdv-0.12/license.txt ${D}${datadir}/doc/psb-video-cdv-0.12/license.txt
99 install -m 0755 ${S}/usr/share/doc/pvr-bin-cdv-1.7.788837_05/license.txt ${D}${datadir}/doc/pvr-bin-cdv-1.7.788837_05/license.txt
100
101}