summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian <adrian.freihofer@gmail.com>2018-03-08 22:53:00 +0100
committerArmin Kuster <akuster808@gmail.com>2018-03-16 19:27:54 -0700
commit5af6af4f38dbaeb4ce67c0d6ef91a446f7252fe2 (patch)
tree13a7f90488be2a4705e59e8b94e31374914fca44
parent492c7efc36ec94dc6a05e65df5a6a302f9283314 (diff)
downloadmeta-openembedded-5af6af4f38dbaeb4ce67c0d6ef91a446f7252fe2.tar.gz
libiio: update and improve recipe
* Update to latest version 0.14. * Make depends on avahi, libusb1 and libxml2 optional by PACKAGECONFIG or DISTRO flags. * Install iiod.service file Signed-off-by: Adrian Freihofer <adrian.freihofer@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-support/libiio/libiio_git.bb32
1 files changed, 26 insertions, 6 deletions
diff --git a/meta-oe/recipes-support/libiio/libiio_git.bb b/meta-oe/recipes-support/libiio/libiio_git.bb
index d66ac58d5..ba380ed30 100644
--- a/meta-oe/recipes-support/libiio/libiio_git.bb
+++ b/meta-oe/recipes-support/libiio/libiio_git.bb
@@ -4,21 +4,41 @@ SECTION = "libs"
4LICENSE = "LGPLv2.1+" 4LICENSE = "LGPLv2.1+"
5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c" 5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
6 6
7SRCREV = "08f947d5e40600259bb698c3b95538e9f2bfecc2" 7SRCREV = "fa82974d8bd1fded78e630ab71a7ded1b11d0e33"
8PV = "0.8+git${SRCPV}" 8PV = "0.14+git${SRCPV}"
9 9
10SRC_URI = "git://github.com/analogdevicesinc/libiio.git" 10SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https"
11 11
12S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
13 13
14DEPENDS = "flex-native bison-native avahi libaio libusb1 libxml2" 14inherit cmake pythonnative systemd
15 15
16inherit cmake pythonnative 16DEPENDS = " \
17 flex-native bison-native libaio \
18 ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \
19"
20
21EXTRA_OECMAKE = " \
22 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
23 -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON -DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
25"
26
27PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND"
28
29PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2"
30PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2"
17 31
18PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python" 32PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
19 33
20RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold" 34RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold"
21 35
22FILES_${PN}-iiod = "${sbindir}/iiod" 36FILES_${PN}-iiod = " \
37 ${sbindir}/iiod \
38 ${systemd_system_unitdir}/iiod.service \
39"
23FILES_${PN}-tests = "${bindir}" 40FILES_${PN}-tests = "${bindir}"
24FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" 41FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
42
43SYSTEMD_PACKAGES = "${PN}-iiod"
44SYSTEMD_SERVICE_${PN}-iiod = "iiod.service"