blob: f3d875b204d9c2866d4fbb86ac161b8130bac83d [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"
Brad Bishop64c979e2019-11-04 13:55:29 -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
Andrew Geisslerc926e172021-05-07 16:11:35 -050033do_configure_prepend() {
34 bbnote "Removing bundled ell from ${S}/ell to prevent including it"
35 rm -rf ${S}/ell
36}
37
Patrick Williamsc124f4f2015-09-15 14:41:29 -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 Williamsc0f7c042017-02-23 20:41:17 -060045FILES_${PN} += "${systemd_unitdir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046FILES_${PN}-tests = "${libdir}/${BPN}/test"
Brad Bishop64c979e2019-11-04 13:55:29 -050047
48RDEPENDS_${PN} += "dbus"
49RDEPENDS_${PN}-tests = "\
50 python3-core \
51 python3-dbus \
52 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-pygobject', '', d)} \
53"
54
55RRECOMMENDS_${PN} += "kernel-module-tun mobile-broadband-provider-info"