diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2017-06-08 14:01:49 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2017-06-09 05:48:57 +0000 |
commit | ab2fdf52446a318417c1f90eaba1ee5dd309ea66 (patch) | |
tree | 20435b7ff651128392019f624653c2d84a0ccba8 /meta-ti-extras/recipes | |
parent | 3c007f28f42f80cd436338337fcb848b5baa4290 (diff) | |
download | meta-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.service | 11 | ||||
-rw-r--r-- | meta-ti-extras/recipes/libgles/ti-sgx-ddk-um_%.bbappend | 20 |
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] | ||
2 | Description=PVR Services | ||
3 | |||
4 | [Service] | ||
5 | Type=oneshot | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/usr/bin/rc.pvr start | ||
8 | ExecStop=/usr/bin/rc.pvr stop | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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 | ||
30 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" | 30 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
31 | SRC_URI += "file://99-fb.rules" | 31 | SRC_URI += "\ |
32 | file://99-fb.rules \ | ||
33 | file://pvr.service \ | ||
34 | " | ||
35 | |||
36 | inherit systemd | ||
37 | |||
38 | SYSTEMD_SERVICE_${PN} = "pvr.service" | ||
32 | 39 | ||
33 | # for supporting weston | 40 | # for supporting weston |
34 | PROVIDES += "virtual/mesa" | 41 | PROVIDES += "virtual/mesa" |
@@ -36,9 +43,18 @@ PROVIDES += "virtual/mesa" | |||
36 | do_install_append() { | 43 | do_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 | ||
41 | FILES_${PN} += "${base_libdir}/udev/rules.d/*.rules" | 54 | FILES_${PN} += "\ |
55 | ${base_libdir}/udev/rules.d/*.rules \ | ||
56 | ${systemd_unitdir}/system/pvr.service \ | ||
57 | " | ||
42 | 58 | ||
43 | RRECOMMENDS_${PN} += "ti-sgx-ddk-km" | 59 | RRECOMMENDS_${PN} += "ti-sgx-ddk-km" |
44 | 60 | ||