diff options
Diffstat (limited to 'meta/recipes-connectivity/ofono/ofono.inc')
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc index c415a39981..72bbcacbd5 100644 --- a/meta/recipes-connectivity/ofono/ofono.inc +++ b/meta/recipes-connectivity/ofono/ofono.inc | |||
@@ -26,6 +26,10 @@ SYSTEMD_SERVICE_${PN} = "ofono.service" | |||
26 | do_install_append() { | 26 | do_install_append() { |
27 | install -d ${D}${sysconfdir}/init.d/ | 27 | install -d ${D}${sysconfdir}/init.d/ |
28 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono | 28 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono |
29 | |||
30 | # Ofono still has one test tool that refers to Python 2 in the shebang | ||
31 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/ofono/test/set-ddr | ||
32 | |||
29 | } | 33 | } |
30 | 34 | ||
31 | PACKAGES =+ "${PN}-tests" | 35 | PACKAGES =+ "${PN}-tests" |
@@ -34,4 +38,4 @@ RDEPENDS_${PN} += "dbus" | |||
34 | 38 | ||
35 | FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" | 39 | FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" |
36 | FILES_${PN}-tests = "${libdir}/${BPN}/test" | 40 | FILES_${PN}-tests = "${libdir}/${BPN}/test" |
37 | RDEPENDS_${PN}-tests = "python python-pygobject python-dbus" | 41 | RDEPENDS_${PN}-tests = "python3 python3-pygobject python3-dbus" |