blob: c3db52d944e41ef259ce5589da7457329da46e74 [file] [log] [blame]
Brad Bishop64c979e2019-11-04 13:55:29 -05001SUMMARY = "open source telephony"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002DESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands."
Brad Bishop64c979e2019-11-04 13:55:29 -05003HOMEPAGE = "http://www.ofono.org"
4BUGTRACKER = "https://01.org/jira/browse/OF"
5LICENSE = "GPLv2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
7 file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee"
Brad Bishop64c979e2019-11-04 13:55:29 -05008DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ell"
9
10SRC_URI = "\
11 ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
12 file://ofono \
13 file://0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch \
Andrew Geisslerc926e172021-05-07 16:11:35 -050014 file://0002-mbim-Fix-build-with-ell-0.39-by-restoring-unlikely-m.patch \
Brad Bishop64c979e2019-11-04 13:55:29 -050015"
William A. Kennington IIIac69b482021-06-02 12:28:27 -070016SRC_URI[sha256sum] = "f7d775887b7b80cf3b82e3f0a6c2696c6d01963d222ca2217919d21b9e803042"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
Brad Bishop96ff1982019-08-19 13:50:42 -040018inherit autotools pkgconfig update-rc.d systemd gobject-introspection-data
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020INITSCRIPT_NAME = "ofono"
21INITSCRIPT_PARAMS = "defaults 22"
Patrick Williams213cb262021-08-07 19:21:33 -050022SYSTEMD_SERVICE:${PN} = "ofono.service"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023
24PACKAGECONFIG ??= "\
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
Brad Bishop64c979e2019-11-04 13:55:29 -050027"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028PACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_unitdir}/system/,--with-systemdunitdir="
Brad Bishop96ff1982019-08-19 13:50:42 -040029PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, bluez5"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Brad Bishop15ae2502019-06-18 21:44:24 -040031EXTRA_OECONF += "--enable-test --enable-external-ell"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
Patrick Williams213cb262021-08-07 19:21:33 -050033do_configure:prepend() {
Andrew Geisslerc926e172021-05-07 16:11:35 -050034 bbnote "Removing bundled ell from ${S}/ell to prevent including it"
35 rm -rf ${S}/ell
36}
37
Patrick Williams213cb262021-08-07 19:21:33 -050038do_install:append() {
Andrew Geisslerc926e172021-05-07 16:11:35 -050039 install -d ${D}${sysconfdir}/init.d/
40 install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041}
42
43PACKAGES =+ "${PN}-tests"
44
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN} += "${systemd_unitdir}"
46FILES:${PN}-tests = "${libdir}/${BPN}/test"
Brad Bishop64c979e2019-11-04 13:55:29 -050047
Patrick Williams213cb262021-08-07 19:21:33 -050048RDEPENDS:${PN} += "dbus"
49RDEPENDS:${PN}-tests = "\
Brad Bishop64c979e2019-11-04 13:55:29 -050050 python3-core \
51 python3-dbus \
52 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-pygobject', '', d)} \
53"
54
Patrick Williams213cb262021-08-07 19:21:33 -050055RRECOMMENDS:${PN} += "kernel-module-tun mobile-broadband-provider-info"