libiio: Bump to version 0.9
PATCH 1/1 libiio: Bump to version 0.9
This new version introduces a lot of bug fixes and some new API functions.
Additionally, the IIO Daemon is now able to share the local IIO devices through USB (using FunctionFS).
--- ...t-include-pthread.h-if-NO_THREADS-is-defi.patch | 26 ---------- ...ties.c-Add-a-check-for-newlocale-function.patch | 55 ++++++++++++++++++++++ .../0002-CMake-Link-with-librt-if-found.patch | 30 ------------ package/libiio/Config.in | 18 +++++-- package/libiio/libiio.hash | 4 +- package/libiio/libiio.mk | 11 ++++- 6 files changed, 82 insertions(+), 62 deletions(-) delete mode 100644 package/libiio/0001-lock.c-Don-t-include-pthread.h-if-NO_THREADS-is-defi.patch create mode 100644 package/libiio/0001-utilities.c-Add-a-check-for-newlocale-function.patch delete mode 100644 package/libiio/0002-CMake-Link-with-librt-if-found.patch
package/libiio/0001-lock.c-Don-t-include-pthread.h-if-NO_THREADS-is-defi.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From d052d263600549979a6219a59e85af80eeafc6d2 Mon Sep 17 00:00:00 2001 -From: Paul Cercueil <[email protected]> -Date: Tue, 5 Jul 2016 12:12:41 +0200 -Subject: [PATCH] lock.c: Don't include <pthread.h> if NO_THREADS is defined - -Signed-off-by: Paul Cercueil <[email protected]> ---- - lock.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lock.c b/lock.c -index 39248ab..00eb9d9 100644 ---- a/lock.c -+++ b/lock.c -@@ -18,7 +18,7 @@ - - #ifdef _WIN32 - #include <windows.h> --#else -+#elif !defined(NO_THREADS) - #include <pthread.h> - #endif - --- -2.8.1 -
package/libiio/0001-utilities.c-Add-a-check-for-newlocale-function.patch new file +55 -0
55 lines not on this page · raw message
package/libiio/0002-CMake-Link-with-librt-if-found.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 1bc450179a0819970261e6a29071756d09b71c5f Mon Sep 17 00:00:00 2001 -From: Paul Cercueil <[email protected]> -Date: Fri, 19 Aug 2016 09:00:58 +0200 -Subject: [PATCH] CMake: Link with librt if found - -This is required for older versions of glibc. - -Signed-off-by: Paul Cercueil <[email protected]> ---- - CMakeLists.txt | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2a339fe..3dd3520 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -113,6 +113,10 @@ add_definitions(-DLIBIIO_VERSION_GIT="${LIBIIO_VERSION_GIT}") - if(WITH_LOCAL_BACKEND) - add_definitions(-DLOCAL_BACKEND=1) - set(LIBIIO_CFILES ${LIBIIO_CFILES} local.c) -+ -+ # Link with librt if present -+ find_library(LIBRT_LIBRARIES rt) -+ set(LIBS_TO_LINK ${LIBS_TO_LINK} ${LIBRT_LIBRARIES}) - endif() - - find_library(LIBUSB_LIBRARIES usb-1.0) --- -2.8.1 -
package/libiio/Config.in +15 -3
@@ -24,7 +24,7 @@ config BR2_PACKAGE_LIBIIO_XML_BACKEND config BR2_PACKAGE_LIBIIO_NETWORK_BACKEND bool "Network backend" - depends on BR2_PACKAGE_LIBIIO_XML_BACKEND + select BR2_PACKAGE_LIBIIO_XML_BACKEND default y help Enable the network backend of the library.
@@ -32,7 +32,7 @@ config BR2_PACKAGE_LIBIIO_NETWORK_BACKEND config BR2_PACKAGE_LIBIIO_USB_BACKEND bool "USB backend" depends on BR2_TOOLCHAIN_HAS_THREADS # from libusb - depends on BR2_PACKAGE_LIBIIO_XML_BACKEND + select BR2_PACKAGE_LIBIIO_XML_BACKEND select BR2_PACKAGE_LIBUSB default y help
@@ -43,7 +43,7 @@ comment "The USB backend needs a toolchain w/ threads" config BR2_PACKAGE_LIBIIO_SERIAL_BACKEND bool "Serial backend" - depends on BR2_PACKAGE_LIBIIO_XML_BACKEND + select BR2_PACKAGE_LIBIIO_XML_BACKEND select BR2_PACKAGE_LIBSERIALPORT default y help
@@ -65,6 +65,18 @@ comment "IIO Daemon needs a toolchain w/ threads" comment "IIO Daemon is not yet available on Blackfin" depends on BR2_bfin +config BR2_PACKAGE_LIBIIO_IIOD_USBD + bool "USB support in the IIO Daemon (FunctionFS)" + depends on BR2_PACKAGE_LIBIIO_IIOD + depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + select BR2_PACKAGE_LIBAIO + help + Add support for USB through FunctionFS with IIOD. + +comment "USB support in the IIO Daemon requires libaio" + depends on BR2_PACKAGE_LIBIIO_IIOD + depends on !BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + config BR2_PACKAGE_LIBIIO_TESTS bool "Install test programs" select BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
package/libiio/libiio.hash +2 -2
@@ -1,2 +1,2 @@ -# From https://github.com/analogdevicesinc/libiio/archive/v0.7/ -sha256 c2b02f1cb51870db52368fdaa8087dc2a4ec43f2bc3c3514d8214952f14c3f39 libiio-0.7.tar.gz +# From https://github.com/analogdevicesinc/libiio/archive/v0.9/ +sha256 b6184876d192fbfd51e3a0a29736fa1be2dbaf07370cf861797076f40a85f823 libiio-0.9.tar.gz
package/libiio/libiio.mk +10 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBIIO_VERSION = 0.7 +LIBIIO_VERSION = 0.9 LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION)) LIBIIO_INSTALL_STAGING = YES LIBIIO_LICENSE = LGPLv2.1+
@@ -13,6 +13,8 @@ LIBIIO_LICENSE_FILES = COPYING.txt LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \ -DWITH_LOCAL_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \ -DWITH_NETWORK_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),ON,OFF) \ + -DWITH_MATLAB_BINDINGS_API=OFF \ + -DINSTALL_UDEV_RULE=$(if $(BR2_PACKAGE_HAS_UDEV),ON,OFF) \ -DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \ -DWITH_DOC=OFF
@@ -44,6 +46,13 @@ else LIBIIO_CONF_OPTS += -DWITH_IIOD=OFF endif +ifeq ($(BR2_PACKAGE_LIBIIO_IIOD_USBD),y) +LIBIIO_DEPENDENCIES += libaio +LIBIIO_CONF_OPTS += -DWITH_IIOD_USBD=ON +else +LIBIIO_CONF_OPTS += -DWITH_IIOD_USBD=OFF +endif + # Avahi support in libiio requires avahi-client, which needs avahi-daemon ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON),yy) LIBIIO_DEPENDENCIES += avahi
Signature · 1 line
2.11.0
PATCH 1/1 libiio: Bump to version 0.9
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Paul" == Paul Cercueil <[email protected]> writes:
This new version introduces a lot of bug fixes and some new API functions.
Additionally, the IIO Daemon is now able to share the local IIO devices through USB (using FunctionFS).
Signed-off-by Paul Cercueil <[email protected]>+++ b/package/libiio/Config.in
package/libiio/Config.in config BR2_PACKAGE_LIBIIO_XML_BACKEND · line 27
Quoted 5 lines
package/libiio/Config.in +1
-1@@ -24,7 +24,7 @@ config BR2_PACKAGE_LIBIIO_XML_BACKEND config BR2_PACKAGE_LIBIIO_NETWORK_BACKEND bool "Network backend" - depends on BR2_PACKAGE_LIBIIO_XML_BACKEND + select BR2_PACKAGE_LIBIIO_XML_BACKEND
You didn't mention this in the description, but yeah - Using select probably makes more sense here.
package/libiio/Config.in comment "IIO Daemon needs a toolchain w/ threads" · line 74
Quoted 11 lines
package/libiio/Config.in +7
-0@@ -65,6 +65,18 @@ comment "IIO Daemon needs a toolchain w/ threads" comment "IIO Daemon is not yet available on Blackfin" depends on BR2_bfin +config BR2_PACKAGE_LIBIIO_IIOD_USBD + bool "USB support in the IIO Daemon (FunctionFS)" + depends on BR2_PACKAGE_LIBIIO_IIOD + depends on BR2_PACKAGE_LIBAIO_ARCH_SUPPORTS + select BR2_PACKAGE_LIBAIO + help + Add support for USB through FunctionFS with IIOD.
This should go before the iiod comments to ensure it gets indented under the iiod option in menuconfig.
I did a quick test build and I see it fails to link with older toolchains as usbd.c doesn't get built.
Looking at the kernel history the usb_functionfs_descs_head_v2 structure seems to have been added in 1df22b4ea9d91, so I added a BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 dependency and updated the comment below.
Committed with that fixed, thanks.
Signature · 1 line
Bye, Peter Korsgaard