1*4882a593SmuzhiyunSUMMARY = "open source telephony" 2*4882a593SmuzhiyunDESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands." 3*4882a593SmuzhiyunHOMEPAGE = "http://www.ofono.org" 4*4882a593SmuzhiyunBUGTRACKER = "https://01.org/jira/browse/OF" 5*4882a593SmuzhiyunLICENSE = "GPL-2.0-only" 6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ 7*4882a593Smuzhiyun file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" 8*4882a593SmuzhiyunDEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ell" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSRC_URI = "\ 11*4882a593Smuzhiyun ${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ 12*4882a593Smuzhiyun file://ofono \ 13*4882a593Smuzhiyun file://0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch \ 14*4882a593Smuzhiyun file://0002-mbim-Fix-build-with-ell-0.39-by-restoring-unlikely-m.patch \ 15*4882a593Smuzhiyun" 16*4882a593SmuzhiyunSRC_URI[sha256sum] = "c0b96d3013447ec2bcb74579bef90e4e59c68dbfa4b9c6fbce5d12401a43aac7" 17*4882a593Smuzhiyun 18*4882a593Smuzhiyuninherit autotools pkgconfig update-rc.d systemd gobject-introspection-data 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunINITSCRIPT_NAME = "ofono" 21*4882a593SmuzhiyunINITSCRIPT_PARAMS = "defaults 22" 22*4882a593SmuzhiyunSYSTEMD_SERVICE:${PN} = "ofono.service" 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunPACKAGECONFIG ??= "\ 25*4882a593Smuzhiyun ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ 26*4882a593Smuzhiyun ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ 27*4882a593Smuzhiyun" 28*4882a593SmuzhiyunPACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_system_unitdir}/,--with-systemdunitdir=" 29*4882a593SmuzhiyunPACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, bluez5" 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunEXTRA_OECONF += "--enable-test --enable-external-ell" 32*4882a593Smuzhiyun 33*4882a593Smuzhiyundo_configure:prepend() { 34*4882a593Smuzhiyun bbnote "Removing bundled ell from ${S}/ell to prevent including it" 35*4882a593Smuzhiyun rm -rf ${S}/ell 36*4882a593Smuzhiyun} 37*4882a593Smuzhiyun 38*4882a593Smuzhiyundo_install:append() { 39*4882a593Smuzhiyun install -d ${D}${sysconfdir}/init.d/ 40*4882a593Smuzhiyun install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono 41*4882a593Smuzhiyun} 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunPACKAGES =+ "${PN}-tests" 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunFILES:${PN} += "${systemd_unitdir}" 46*4882a593SmuzhiyunFILES:${PN}-tests = "${libdir}/${BPN}/test" 47*4882a593Smuzhiyun 48*4882a593SmuzhiyunRDEPENDS:${PN} += "dbus" 49*4882a593SmuzhiyunRDEPENDS:${PN}-tests = "\ 50*4882a593Smuzhiyun python3-core \ 51*4882a593Smuzhiyun python3-dbus \ 52*4882a593Smuzhiyun ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-pygobject', '', d)} \ 53*4882a593Smuzhiyun" 54*4882a593Smuzhiyun 55*4882a593SmuzhiyunRRECOMMENDS:${PN} += "kernel-module-tun mobile-broadband-provider-info" 56