similarity index 75%
rename from meta-oe/recipes-support/libiio/libiio_0.26.bb
rename to meta-oe/recipes-support/libiio/libiio_1.0.0.bb
@@ -1,22 +1,28 @@
SUMMARY = "Library for interfacing with IIO devices"
HOMEPAGE = "https://wiki.analog.com/resources/tools-software/linux-software/libiio"
SECTION = "libs"
-LICENSE = "LGPL-2.1-or-later"
-LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c"
-
-SRCREV = "a0eca0d2bf10326506fb762f0eec14255b27bef5"
+LICENSE = "LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later AND BSD-3-Clause"
+LICENSE:${PN} = "LGPL-2.1-or-later AND MIT"
+LICENSE:${PN}-iiod = "LGPL-2.1-or-later AND MIT AND BSD-3-Clause"
+LICENSE:${PN}-tests = "GPL-2.0-or-later"
+LICENSE:${PN}-python3 = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=7c13b3376cea0ce68d2d2da0a1b3a72c \
+ file://COPYING_GPL.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+ file://COPYING_MIT.txt;md5=6adb420b1f4ed98678908c60d934265a \
+"
-SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https;branch=libiio-v0"
-UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
+SRCREV = "9a929664fd3effa500430626803ac59ecf2f4ed3"
+SRC_URI = "git://github.com/analogdevicesinc/libiio.git;protocol=https;branch=main;tag=v${PV}"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
-SETUPTOOLS_SETUP_PATH ?= "${B}/bindings/python/"
+PEP517_SOURCE_PATH = "${S}/bindings/python"
DEPENDS = " \
- flex-native bison-native libaio \
+ flex-native bison-native libaio zstd \
"
-inherit cmake python3native systemd setuptools3 pkgconfig update-rc.d
+inherit python_setuptools_build_meta cmake systemd pkgconfig update-rc.d
EXTRA_OECMAKE = " \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -41,12 +47,12 @@ PACKAGECONFIG[network_backend] = "-DWITH_NETWORK_BACKEND=ON -DWITH_XML_BACKEND=O
PACKAGECONFIG[serial_backend] = "-DWITH_SERIAL_BACKEND=ON -DWITH_XML_BACKEND=ON,-DWITH_SERIAL_BACKEND=off,libserialport libxml2"
PACKAGECONFIG[xml_backend] = "-DWITH_XML_BACKEND=ON,${XML_BACKEND_DISABLE},libxml2"
PACKAGECONFIG[dnssd] = "-DHAVE_DNS_SD=ON,-DHAVE_DNS_SD=off,avahi"
-PACKAGECONFIG[libiio-python3] = "-DPYTHON_BINDINGS=ON,-DPYTHON_BINDINGS=OFF"
+PACKAGECONFIG[libiio-python3] = ""
PACKAGECONFIG[hwmon] = "-DWITH_HWMON=ON,-DWITH_HWMON=OFF"
PACKAGES =+ "${PN}-iiod ${PN}-tests ${PN}-python3"
-# Inheriting setuptools3 incorrectly adds the dependency on python3-core
+# Inheriting python_setuptools_build_meta incorrectly adds the dependency on python3-core
# to ${PN} instead of to ${PN}-python3 where it belongs.
RDEPENDS:${PN}:remove = "python3-core"
RDEPENDS:${PN}-python3 = "${PN} python3-core python3-ctypes python3-stringold"
@@ -64,7 +70,7 @@ SYSTEMD_SERVICE:${PN}-iiod = "iiod.service"
INITSCRIPT_PACKAGES = "${PN}-iiod"
INITSCRIPT_NAME:${PN}-iiod = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'iiod', '', d)}"
-# Explicitly define do_configure, do_compile and do_install because both cmake and setuptools3 have
+# Explicitly define do_configure, do_compile and do_install because both cmake and python_pep517 have
# EXPORT_FUNCTIONS do_configure do_compile do_install
do_configure() {
cmake_do_configure
@@ -72,14 +78,14 @@ do_configure() {
do_compile() {
if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
- setuptools3_do_compile
+ python_pep517_do_compile
fi
cmake_do_compile
}
do_install() {
if ${@bb.utils.contains('PACKAGECONFIG', 'libiio-python3', 'true', 'false', d)}; then
- setuptools3_do_install
+ python_pep517_do_install
fi
cmake_do_install
}
First stable 1.x release; it breaks both the API and the ABI of 0.x. - Header moved to <iio/iio.h>; SONAME is now libiio.so.1 with a frozen version script; errors are returned as pointer-encoded codes - Contexts are created with iio_create_context(params, uri); attributes use iio_attr objects; streaming is block based (iio_channels_mask, iio_buffer_open, iio_block, iio_stream) - New binary IIOD protocol negotiated at connect time, multi-buffer and DMABUF support; IIOD still serves v0.x clients - A libiio.so.0 compatibility library keeps v0.x binaries running - iio_readdev and iio_writedev merged into iio_rwdev Track main and the v1.0.0 tag instead of the libiio-v0 branch. Add zstd to DEPENDS, which iiod needs for its USB/network/serial/async I/O support. The Python bindings are now a standalone pyproject package (pylibiio) without a CMake option, so build them with python_setuptools_build_meta from bindings/python when the libiio-python3 PACKAGECONFIG is enabled. Several sources are now MIT licensed, so add MIT and the per-package licences (utils are GPL-2.0-or-later, as before, and iiod has one BSD-3-Clause header). License-Update: add MIT (new COPYING_MIT.txt) and the existing COPYING_GPL.txt; COPYING.txt is unchanged. Add UPSTREAM_CHECK_GITTAGREGEX matching release tags only. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../{libiio_0.26.bb => libiio_1.0.0.bb} | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) rename meta-oe/recipes-support/libiio/{libiio_0.26.bb => libiio_1.0.0.bb} (75%)