diff options
author | Adrian <adrian.freihofer@gmail.com> | 2018-03-08 22:53:00 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-16 19:27:54 -0700 |
commit | 5af6af4f38dbaeb4ce67c0d6ef91a446f7252fe2 (patch) | |
tree | 13a7f90488be2a4705e59e8b94e31374914fca44 | |
parent | 492c7efc36ec94dc6a05e65df5a6a302f9283314 (diff) | |
download | meta-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.bb | 32 |
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" | |||
4 | LICENSE = "LGPLv2.1+" | 4 | LICENSE = "LGPLv2.1+" |
5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c" | 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c" |
6 | 6 | ||
7 | SRCREV = "08f947d5e40600259bb698c3b95538e9f2bfecc2" | 7 | SRCREV = "fa82974d8bd1fded78e630ab71a7ded1b11d0e33" |
8 | PV = "0.8+git${SRCPV}" | 8 | PV = "0.14+git${SRCPV}" |
9 | 9 | ||
10 | SRC_URI = "git://github.com/analogdevicesinc/libiio.git" | 10 | SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https" |
11 | 11 | ||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | 13 | ||
14 | DEPENDS = "flex-native bison-native avahi libaio libusb1 libxml2" | 14 | inherit cmake pythonnative systemd |
15 | 15 | ||
16 | inherit cmake pythonnative | 16 | DEPENDS = " \ |
17 | flex-native bison-native libaio \ | ||
18 | ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ | ||
19 | " | ||
20 | |||
21 | EXTRA_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 | |||
27 | PACKAGECONFIG ??= "USB_BACKEND NETWORK_BACKEND" | ||
28 | |||
29 | PACKAGECONFIG[USB_BACKEND] = "-DWITH_USB_BACKEND=ON,-DWITH_USB_BACKEND=OFF,libusb1,libxml2" | ||
30 | PACKAGECONFIG[NETWORK_BACKEND] = "-DWITH_NETWORK_BACKEND=ON,-DWITH_NETWORK_BACKEND=OFF,libxml2" | ||
17 | 31 | ||
18 | PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python" | 32 | PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python" |
19 | 33 | ||
20 | RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold" | 34 | RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold" |
21 | 35 | ||
22 | FILES_${PN}-iiod = "${sbindir}/iiod" | 36 | FILES_${PN}-iiod = " \ |
37 | ${sbindir}/iiod \ | ||
38 | ${systemd_system_unitdir}/iiod.service \ | ||
39 | " | ||
23 | FILES_${PN}-tests = "${bindir}" | 40 | FILES_${PN}-tests = "${bindir}" |
24 | FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" | 41 | FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" |
42 | |||
43 | SYSTEMD_PACKAGES = "${PN}-iiod" | ||
44 | SYSTEMD_SERVICE_${PN}-iiod = "iiod.service" | ||