Skip to contentSkip to conversation

libiio: add recipe

PATCH In review Andrea Galbusera 1 participant 2 messages Nov 3, 2016 – Nov 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libiio: add recipe

libiio is a C library for interfacing with IIO devices. It abstracts the low-level details of the hardware, and provides a simple yet complete programming interface.

This recipe provides the following packages:
* libiio: main package with C library
* libiio-iiod: user space daemon providing network backend to iio devices
* libiio-tests: user space test applications using libiio
* libiio-python: python bindings

---

Changes in V2:
* use normal git checkout instead of Github archives to avoid issues with checksum changing from time to time.
* while at it, use the latest commit, set PV and rename recipe accordingly.
* review DEPENDS to enable using new features/optional libraries.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-support/libiio/libiio_git.bb
meta-oe/recipes-support/libiio/libiio_git.bb new file +24 -0
new file mode 100644
index 0000000..28a1073
@@ -0,0 +1,24 @@
+SUMMARY = "Library for interfacing with IIO devices"
+HOMEPAGE = "https://wiki.analog.com/resources/tools-software/linux-software/libiio"
+SECTION = "libs"
+LICENSE = "LGPLv2.1+"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
+
+SRCREV = "e0fc3845506ccb19ab02e4b1d81cddeeee0805ab"
+PV = "0.7+git${SRCPV}"
+
+SRC_URI = "git://github.com/analogdevicesinc/libiio.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "flex-native bison-native avahi libaio libusb1 libxml2"
+
+inherit cmake pythonnative
+
+PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
+
+RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold"
+
+FILES_${PN}-iiod = "${sbindir}/iiod"
+FILES_${PN}-tests = "${bindir}"
+FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 58 lines · Andrea Galbusera

libiio is a C library for interfacing with IIO devices. It abstracts the low-level details of the hardware, and provides a simple yet complete programming interface.

This recipe provides the following packages:
* libiio: main package with C library
* libiio-iiod: user space daemon providing network backend to iio devices
* libiio-tests: user space test applications using libiio
* libiio-python: python bindings

---

Changes in V2:
* use normal git checkout instead of Github archives to avoid issues with checksum changing from time to time.
* while at it, use the latest commit, set PV and rename recipe accordingly.
* review DEPENDS to enable using new features/optional libraries.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 24
++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-support/libiio/libiio_git.bb
meta-oe/recipes-support/libiio/libiio_git.bb new file +2 -0
new file mode 100644
index 0000000..28a1073
@@ -0,0 +1,24 @@
+SUMMARY = "Library for interfacing with IIO devices"
+HOMEPAGE = "https://wiki.analog.com/resources/tools-software/

linux-software/libiio"

meta-oe/recipes-support/libiio/libiio_git.bb new file +3 -0
+SECTION = "libs"
+LICENSE = "LGPLv2.1+"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a7

2c"

meta-oe/recipes-support/libiio/libiio_git.bb new file +19 -1
+
+SRCREV = "e0fc3845506ccb19ab02e4b1d81cddeeee0805ab"
+PV = "0.7+git${SRCPV}"
+
+SRC_URI = "git://github.com/analogdevicesinc/libiio.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "flex-native bison-native avahi libaio libusb1 libxml2"
+
+inherit cmake pythonnative
+
+PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python"
+
+RDEPENDS_${PN}-python = "${PN} python-ctypes python-stringold"
+
+FILES_${PN}-iiod = "${sbindir}/iiod"
+FILES_${PN}-tests = "${bindir}"
+FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
--
Quoted 3 lines

1.9.1

If not in any testing queue yet, please hold this, since a new upstream version was released a few days ago and I can shortly send a v3 patch for it. Let me know if I have to do flag something on patchwork too.