summaryrefslogtreecommitdiffstats
path: root/meta-ti-extras/recipes
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2017-06-08 14:01:49 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2017-06-09 05:48:57 +0000
commitab2fdf52446a318417c1f90eaba1ee5dd309ea66 (patch)
tree20435b7ff651128392019f624653c2d84a0ccba8 /meta-ti-extras/recipes
parent3c007f28f42f80cd436338337fcb848b5baa4290 (diff)
downloadmeta-boot2qt-ab2fdf52446a318417c1f90eaba1ee5dd309ea66.tar.gz
BBB: add systemd service for powervr drivers
The PowerVR driver initialization must be run before Qt can work. Also extend boot partition to make sure FAT32 partition fits corretly, which resolves a sd card boot issue. Task-number: QTBUG-60945 Task-number: QTBUG-58720 Change-Id: Ie1cb08f93473efc48098858c8a3c5308d8668141 Reviewed-by: Karim Pinter <karim.pinter@qt.io>
Diffstat (limited to 'meta-ti-extras/recipes')
-rw-r--r--meta-ti-extras/recipes/libgles/ti-sgx-ddk-um/pvr.service11
-rw-r--r--meta-ti-extras/recipes/libgles/ti-sgx-ddk-um_%.bbappend20
2 files changed, 29 insertions, 2 deletions
diff --git a/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um/pvr.service b/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um/pvr.service
new file mode 100644
index 0000000..dca5ac4
--- /dev/null
+++ b/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um/pvr.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=PVR Services
3
4[Service]
5Type=oneshot
6RemainAfterExit=yes
7ExecStart=/usr/bin/rc.pvr start
8ExecStop=/usr/bin/rc.pvr stop
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um_%.bbappend b/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um_%.bbappend
index 6079659..94ef641 100644
--- a/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um_%.bbappend
+++ b/meta-ti-extras/recipes/libgles/ti-sgx-ddk-um_%.bbappend
@@ -28,7 +28,14 @@
28############################################################################ 28############################################################################
29 29
30FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" 30FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
31SRC_URI += "file://99-fb.rules" 31SRC_URI += "\
32 file://99-fb.rules \
33 file://pvr.service \
34 "
35
36inherit systemd
37
38SYSTEMD_SERVICE_${PN} = "pvr.service"
32 39
33# for supporting weston 40# for supporting weston
34PROVIDES += "virtual/mesa" 41PROVIDES += "virtual/mesa"
@@ -36,9 +43,18 @@ PROVIDES += "virtual/mesa"
36do_install_append() { 43do_install_append() {
37 install -d ${D}${base_libdir}/udev/rules.d 44 install -d ${D}${base_libdir}/udev/rules.d
38 install -m 0644 ${WORKDIR}/99-fb.rules ${D}${base_libdir}/udev/rules.d 45 install -m 0644 ${WORKDIR}/99-fb.rules ${D}${base_libdir}/udev/rules.d
46
47 install -d ${D}${systemd_unitdir}/system
48 install -m 0644 ${WORKDIR}/pvr.service ${D}${systemd_unitdir}/system
49
50 install -d ${D}${bindir}
51 install -m 0755 ${D}${sysconfdir}/init.d/rc.pvr ${D}${bindir}
39} 52}
40 53
41FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules" 54FILES_${PN} += "\
55 ${base_libdir}/udev/rules.d/*.rules \
56 ${systemd_unitdir}/system/pvr.service \
57 "
42 58
43RRECOMMENDS_${PN} += "ti-sgx-ddk-km" 59RRECOMMENDS_${PN} += "ti-sgx-ddk-km"
44 60