Commit Graph

35 Commits

Author SHA1 Message Date
alperak fdfd510992 remove obsolete PIP_INSTALL_PACKAGE and PIP_INSTALL_DIST_PATH
All downloaded files and sstates for the recipes were cleaned, build was got from stratch and no errors were encoutered.

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-09 10:55:23 -08:00
Tim Orling 1e1458f98e meta-oe: drop ${PYTHON_PN}
python2 is long unsupported, so we no longer need this variable

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-19 23:22:24 -08:00
Martin Jansa c902a85099 libiio: use main branch instead of master
* the branch was renamed upstream

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-07 08:22:43 -07:00
Marek Vasut aa3154fbe2 libiio: Rename to versioned recipe filename
The libiio recipe now points to specific version within the git history,
rename the recipe to versioned one instead of _git one to match it.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-11 00:06:04 -07:00
Marek Vasut 98b7f5c8ea libiio: Use tagged v0.25
Use the actual tagged libiio v0.25 , not some random older version.

Fixes: 6be235b5c ("libiio: update to version 0.25")
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-11 00:06:04 -07:00
Marek Vasut 6be235b5c3 libiio: update to version 0.25
The version 0.25 has been released, it has not been tagged however.
Update the this version anyway.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-07 09:01:00 -07:00
Marek Vasut 5d03a8a660 libiio: enable c++ bindings
The C++ bindings are new in libiio 0.25 , make those available.
Unlike python bindings which are gated off by PACKAGECONFIG, it
seems the C++ bindings have no dependencies, the C++ compiler is
always present, so the bindings can always be enabled.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-12 16:19:40 -07:00
Martin Jansa 078d920366 libiio: remove unused patch file
* it was removed from SRC_URI in:
  https://git.openembedded.org/meta-openembedded/commit/?id=998219d2e8179c8ca758da822b8dc17a1e3533b8

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-24 07:23:55 -07:00
Martin Siegumfeldt 998219d2e8 libiio: update to version 0.24
- drop 0001-CMake-Move-include-CheckCSourceCompiles-before-its-m.patch
   (integrated upstream)

 - updated CMakeLists.txt requires pkgconfig

Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-17 17:43:11 -07:00
Khem Raj 2efc81182a libiio: Do not generate lineinfo in lex/yacc generated files
This avoid buildpaths being in target packages. These are emitted into
generated lexer.c and parser.c, therefore ensure that lex and yacc are
directled to not include lines in their output.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-15 17:43:32 -07:00
Christian Eggers d30a0e7e18 libiio: update to version 0.23
- drop 0001-python-Do-not-verify-whether-libiio-is-installed-whe.patch
  (integrated upstream)
- new PACKAGECONFIG "xml_backend" (WITH_XML_BACKEND=off must be
explicitly provided if libxml2 is not available)
- new PACKAGECONFIG "dnssd" (HAVE_DNS_SD=off must be explicitly provided
if libavahi is not available)
- python library has been renamed (libiio --> pylibiio)

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-10 07:31:21 -08:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Sam Van Den Berge c1984fc8f9 libiio: use setuptools functions instead of distutils
Since ca73393a36c4144662ea8570f904154188e9815a in oe-core, setuptools
does not inherit from distutils3 anymore. Therefore replace the
distutils functions and variables by their setuptools counterparts which
are now available.

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-11 09:10:38 -08:00
Richard Purdie b402a3076f 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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Nandor Han e078ffd4ce 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>
2021-10-01 08:17:12 -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