22 Commits

Author SHA1 Message Date
Armin Kuster 1659d38199 recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

I tried backporting Richard's master change but there where many merge conflicts.
I went the lazy route and ran the script.
This is work based on "b402a3076 recipes: Update SRC_URI branch and protocols"

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-11-06 11:00:13 -07:00
Nandor Han d056cc9390 libiio: depend on avahi only when network backed is used
The `avahi` dependency is needed only when network backend is used.
The current dependency configuration will add the `avahi` dependency
regardless if network backend is used or not.

Move the `avahi` dependency to be part of `PACKAGECONFIG` configuration
which will insert the dependency only when needed.

Signed-off-by: Nandor Han <nandor.han@vaisala.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-10-07 08:23:51 -07:00
Peter Kjellerstedt d11af153b7 libiio: Make libiio-python3 depend on python3-core
Inheriting setuptools3 incorrectly adds the dependency on python3-core
to libiio instead of to libiio-python3 where it belongs.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-09-24 08:12:35 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Sam Van Den Berge 96c7664e40 libiio: fix installing libiio when python3 bindings are enabled
This patch fixes the following error when libiio is installed when
python3 bindings are enabled:

ERROR: Execution of '.../libiio/0.21+gitAUTOINC+565bf68ecc-r0/temp/run.do_install.2349473' failed with exit code 1:
running build
running build_py
running install
Traceback (most recent call last):
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 77, in _check_libiio_installed
    raise OSError
OSError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 106, in <module>
    setup(**config)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 52, in run
    self._check_libiio_installed()
  File "/libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 83, in _check_libiio_installed
    raise Exception(msg)
Exception: The libiio library could not be found.
            libiio needs to be installed first before the python bindings.
            The latest release can be found on GitHub:
            https://github.com/analogdevicesinc/libiio/releases

Some time ago a fix for this issue was already discussed here [1].
However in the same discussion also a second issue was being handled.

A fix for the second issue was merged in 51f98865da. The first issue
didn't pop up anymore and so a fix was never applied.

Recently however after switching from build machine, I started seeing
the first issue. I suspect due to build caching the first issue didn't
pop up anymore before up until now. With this patch, fixes are now
available for both issues handled in [1].

[1]: https://github.com/openembedded/meta-openembedded/issues/248

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:39:32 -07:00
Nuno Sá a41f4277cd libiio: mark libxml2 as depends for usb_backend
When usb_backend is configured, libxml2 is set as a RDEPEND. But, in
reality we want it to be part of the DEPENDS list.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-17 09:00:36 -07:00
Nuno Sá 31c3d52888 libiio: add serial backend support
This patch adds the serial backend to the PACKAGECONFIG list.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-17 09:00:36 -07:00
Sam Van Den Berge 51f98865da libiio: fix build when python bindings are enabled
See https://github.com/openembedded/meta-openembedded/issues/248

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@telenet.be>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-05 08:48:51 -08:00
Zang Ruochen c6feb9f6de libiio: upgrade 0.20 -> 0.21
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-30 07:58:38 -07:00
Pierre-Jean Texier ea5088d719 libiio: upgrade 0.19 -> 0.20
See full changelog https://github.com/analogdevicesinc/libiio/releases/tag/v0.20

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-08 13:58:03 -07:00
Pierre-Jean Texier 690b0faec5 libiio: fix upstream check URL
Fixes:

INFO: libiio                    0.19            2015.2          None 18563161daa5d61c9e404be26e714dbaf0f344f2

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-25 12:48:10 -07:00
Pierre-Jean Texier 69c0e0d842 libiio: upgrade 0.18 -> 0.19
See full changelog https://github.com/analogdevicesinc/libiio/releases/tag/v0.19

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-14 17:11:40 -08:00
Martin Siegumfeldt bfe856b579 libiio: add python3 packageconfig
* used for enabling python bindings - note that behavior is changed
   from 'opt-out' to 'opt-in'

 * config is used for potentially inheriting distutils3-base

 * also decapitalize packageconfig names similar to other recipes

Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
Khem Raj d06f1eeb34 libiio: Inherit distutils3-base for packaging python files
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-25 10:34:36 -07:00
Martin Siegumfeldt 7d4632fad1 libiio: bump to version 0.18+
Move a few commits ahead of 0.18 in order to resolve build issue
related to static only library installation.

Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 05:53:26 -07:00
Martin Siegumfeldt 6af1555135 libiio: allow python3 bindings to be built
Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 05:53:26 -07:00
Martin Siegumfeldt c259bc3af8 Revert "libiio: fix build of python bindins"
This reverts commit b0caf1fb82.

 * bindings are build through the variant 'libiio-python' and is not
   intended installed as part of just 'libiio'

Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-17 05:53:26 -07:00
Nicholas Pillitteri f352612e77 Bump libiio version to 0.15 2018-11-26 09:38:13 -08:00
Neil Armstrong b0caf1fb82 libiio: fix build of python bindins
In the actual form, the python bindings are never built since the
recipe does not depend on python, thus the cmake script does not
detect python and does not build the bindings.

Add a summy PACKAGECONFIG for the python bindings to make it simpler
to disable.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-20 16:07:12 -07:00
Adrian 5af6af4f38 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>
2018-03-16 19:27:54 -07:00
Steven van der Schoot f43ea8ff7c libiio: Update to 0.8
Signed-off-by: Steven van der Schoot <steven.vanderschoot@solarteameindhoven.nl>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-01-25 15:59:57 +01:00
Andrea Galbusera 53a6b833df 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

Signed-off-by: Andrea Galbusera <gizero@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-11-23 15:24:01 +01:00