From c66d5a4dfe12de957160c06b0f264e4cde7ac0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20S=C3=A1?= Date: Mon, 17 May 2021 13:13:26 +0200 Subject: [PATCH] meta-adi-xilinx: fix libiio configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the changes introduced in [1], libiio now looks for system dependencies depending on enabled options. Hence, as the serial backend is enabled by default, libserialport has to be set as DEPENDS. This patch adds the SERIAL_BACKEND to the list of PACKAGECONFIG for libiio. [1]: https://github.com/analogdevicesinc/libiio/pull/680 Signed-off-by: Nuno Sá --- meta-adi-xilinx/recipes-support/libiio/libiio_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-adi-xilinx/recipes-support/libiio/libiio_%.bbappend b/meta-adi-xilinx/recipes-support/libiio/libiio_%.bbappend index 17c92e8..8fffd87 100644 --- a/meta-adi-xilinx/recipes-support/libiio/libiio_%.bbappend +++ b/meta-adi-xilinx/recipes-support/libiio/libiio_%.bbappend @@ -11,3 +11,7 @@ inherit update-rc.d INITSCRIPT_NAME = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'iiod', '', d)}" +PACKAGECONFIG ?= "USB_BACKEND NETWORK_BACKEND PYTHON_BINDINGS SERIAL_BACKEND" + +PACKAGECONFIG[SERIAL_BACKEND] = "-DWITH_SERIAL_BACKEND=ON,-DWITH_SERIAL_BACKEND=off,libserialport libxml2" +