aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libgpiod
AgeCommit message (Collapse)Author
41 min.libgpiod: Migrate to catch2 v3Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2024-05-19libgpiod: update to v2.1.2Bartosz Golaszewski
This is a small bugfix release that fixes a build issue with slibtool (not relevant to meta-oe ATM), makes the licensing of C++ bindings less restrictive and preemptively fixes an issue that will be triggered with linux v6.9 when running gpio-tools ptest suite. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-08libgpiod: fix QA error in ptest RDEPENDSXiangyu Chen
The bash in ptest RDEPENDS would cause following QA error: ERROR: QA Issue: lib32-libgpiod package lib32-libgpiod-ptest-dev - suspicious values 'bash-dev' in RRECOMMENDS [multilib] Add a ptest enable dependency to avoid this QA error happens. Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-11libgpiod: update to v2.1.1Bartosz Golaszewski
This is a bug-fix release addressing a couple issues in core libgpiod. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-29libgpiod: Tests rely on configfs support in kernelKhem Raj
Add a recommendation on configfs kernel module. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-03libgpiod: update to v2.1Bartosz Golaszewski
This is a small release bringing in a bunch of improvements and a couple new interfaces. Details are available in NEWS. We need to move the code in recipes around a bit as the tests now use shunit2. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-26libgpiod: update to v2.0.2Bartosz Golaszewski
This is a small bug-fix release addressing a segfault, a memory corruption bug and a couple minor issues. This also removes the patch that's already upstream. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-03remove unused AUTHOR variableMichael Opdenacker
No longer used in generating packages Also creates a possible confusion with the recipe maintainer name. Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-13libgpiod: modify RDEPENDS for ptestJoe Slater
The current use of RDEPENDS to add a dependency on bats results in the QA warning/error lib32-libgpiod package lib32-libgpiod-ptest-dev - suspicious values 'bats-dev' in RRECOMMENDS [multilib] when building lib32-libgpiod with ptest not enabled. We add the dependency only if ptest is enabled. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21libgpiod: fix malformed Upstream-StatusMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-14libgpiod: modify test 'gpioset: toggle (continuous)'Joe Slater
Look for level transitions when testing toggling values because using fixed delays to assume value changes is not reliable. Signed-off-by: Joe Slater <joe.slater@windriver.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-04libgpiod: add myself as maintainerBartosz Golaszewski
While RECIPE_MAINTAINER doesn't seem to be used anywhere, let's add it in hopes that it will at least make people Cc me on any recipe patches in the future. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-01Revert "libgpiod: modify test 'gpioset: toggle (continuous)'"Khem Raj
This reverts commit d891624096cb529ab251c9d80d06f641090738c1.
2023-05-25libgpiod: modify test 'gpioset: toggle (continuous)'Joe Slater
Look for level transitions when testing toggling values because using fixed delays to assume value changes is not reliable. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-20libgpiod: remove test executables from ${bindir}Bartosz Golaszewski
There's no need to put the test executables into ${bindir} as they're already installed into ${PTEST_PATH}. This just pollutes $PATH. Future libgpiod releases will not install test binaries at all, leaving it to the library users. For now: remove them manually after installation. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-14libgpiod: fold libgpiod-src.inc into libgpiod.incBartosz Golaszewski
Now that python3-gpiod fetches the sources from pypi, we no longer need to provide the SRC_URI in a separate include. Fold it into the libgpiod.inc used locally only. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-14libgpiod: install the libgpiosim headerBartosz Golaszewski
This header is used for building tests. While libgpiod can access it from the source tree, the python bindings that live in a separate recipe must be able to use it from its recipe sysroot. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-11libgpiod: update to v2.0.1Bartosz Golaszewski
This is a bug-fix release addressing bugs discovered since the release of v2.0. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-11libgpiod: generalize the local files directoriesBartosz Golaszewski
In order to avoid having to rename the directories containing ptest scripts on every update, use a more generic, per-major-release name and extend the FILESEXTRAPATHS. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-11libgpiod: drop unneeded S assignmentBartosz Golaszewski
Assigning a value to S is not necessary and it will in fact break the recipe when updating the version so drop it. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-11libgpiod: enable all features for ptestBartosz Golaszewski
We will fail to install or run all the tests if we don't enable all the features exposed by the libgpiod project. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-02libgpiod: update to v2.0Bartosz Golaszewski
The final v2.0 release is out so update the recipe. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-24libgpiod: bump version to v2.0-rc3Bartosz Golaszewski
I decided to make one more RC before the final release as there was one late minor change to C++ interface (marking public classes as final). Next week libgpiod v2.0 should be finally carved in stone. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-18libgpiod: add a recipe for libgpiod v2.0-rc2Bartosz Golaszewski
This is a recipe for libgpiod v2 release candidate. Let's put common bits and pieces into an .inc file and the source fetching into a separate include that will be later reused by the python bindings that for v2 will be moved into a separate recipe in meta-python. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-08libgpiod: update to v1.6.4Bartosz Golaszewski
This is a bug-fix release bringing in several fixes for build and testing issues. Remove the patch that's already present in this release. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-25libgpiod: fix python bindings buildBartosz Golaszewski
It seems that automake's AM_PATH_PYTHON() macro no longer sets the $PYTHON variable. This means the python bindings build for libgpiod has been broken for some time. As we know which version we're using - python3 - let's hardcode it in configure.ac. For now add a patch that's been merged upstream and once a new bugfix release is out, we'll remove it. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-12libgpiod: Detect ptest using PTEST_ENABLEDAlex Kiernan
Allow the ptest packages to be disabled even if ptest is enabled in DISTRO_FEATURES. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-24libgpiod: move test dependencies to ptest packagePeter Marko
This reverts and reworks commit e75cc87c4f944dff766c426fafafd48c378544fe These tools are needed by test-suites, not the package itself. I do not want bash (gpl3) or python (big/lot of dependencies) in my release image when I have ptest enabled in my distro for sdk/testing image. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-01libgpiod: ptest: redirect stderr to stdout for test executablesBartosz Golaszewski
Catch2 (used by the C++ tests) prints its output to stderr instead of stdout. Redirect stderr to stdout for all test executables. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-19libgpiod: ptest: rrecommend coreutilsBartosz Golaszewski
The bats test suite requires the 'timeout' and 'nl' commands to be available. Busybox' default config doesn't include those. They are built by default by coreutils though, so add it to RRECOMMENDS for ptest. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-19libgpiod: ptest: rrecommend python3-unittest when building python testsBartosz Golaszewski
The python test suite uses the unittest module. It's not built by default in minimal images, so we need to add it RRECOMMENDS explicitly. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06emacs,libgpiod,cockpit: Fix override syntax in using FILES_${PN}Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03Convert to new override syntaxMartin Jansa
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-06-09Revert "libgpiod: ptest: warn if the gpio-mockup kernel module is not selected"Signed-off-by: Bartosz Golaszewski
This reverts commit 977c5f56198f075376f753b0b4178ecb35ad02ec. This recipe doesn't see the final value of KERNEL_FEATURES that the linux-yocto recipe uses - that's why this warning was always triggered if the gpio-mockup feature was not defined globally in this variable. The linux-yocto recipe pulls in gpio-mockup automatically if ptest is in DISTRO_FEATURES so we don't really needs thich check. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09libgpiod: update my email addressBartosz Golaszewski
I now maintain the project and this recipe in my own time. Update my email address in the AUTHOR field. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-09libgpiod: add the python test-suite to the ptest packageBartosz Golaszewski
One more follow-up to the ptest updates - the python test suite was missed and is still in the main library package. Move it to libgpiod-ptest. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: ptest: only rrecommend a single module that we needBartosz Golaszewski
We don't need to pull in all kernel modules. It's enough to just rrecommend gpio-mockup. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: ptest: add kernel-modules to RRECOMMENDSBartosz Golaszewski
libgpiod needs the gpio-mockup kernel module to be loadable (not built-in). Add kernel-modules to RRECOMMENDS. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: ptest: warn if the gpio-mockup kernel module is not selectedBartosz Golaszewski
libgpiod test-suites work with the gpio-mockup kernel module. When using linux-yocto, it's enabled using the gpio/mockup.scc kernel feature. Check if this feature is present in KERNEL_FEATURE and warn if not. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: ptest: run all test-suites if possibleBartosz Golaszewski
We have four test-suites total in libgpiod: for the core C library, gpio-tools and for C++ and Python bindings. Modify the recipe to install all of them depending on build settings and make run-ptest execute them if available. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: redirect stdout from the ptest executable to a fileBartosz Golaszewski
Most tests redirect their standard output to a file. Let's make libgpiod consistent with this pattern. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: add RDEPENDS for testsBartosz Golaszewski
The libgpiod-tools test-suite requires bats at run-time. The python test-suite needs the packaging module. Add both to the RDEPENDS in the tests PACKAGECONFIG option Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: correctly split output files into packagesBartosz Golaszewski
Currently, the files that should go into libgpiod-ptest are part of either the main library package of libgpiod-tools. Use more fine-grained values for package files variables. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: fix RRECOMMENDS for python bindingsBartosz Golaszewski
RRECOMMENDS for the python module doesn't work because it specifies the module itself as its own RRECOMMENDS. Fix it to recommend the python package if python3 is in PACKAGECONFIG for the main package. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: list all packages in a single assignmentBartosz Golaszewski
Don't have assignments to PACKAGES scattered across the recipe - use a single place for that before assigning FILES. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-04libgpiod: coding style fixesBartosz Golaszewski
The recipe is getting bigger so try to keep a consistent coding style. Use four spaces instead of tabs and use the common way of splitting multi-line strings for minimum git diff lines at modification. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-22libgpiod: update v1.6.2 -> v1.6.3Bartosz Golaszewski
This is a small bugfix release addressing some issues with C++ and Python bindings. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-23libgpiod: packageqa problem => static python lib to ${PN}-staticdevChristian B. Sørensen
Problem: QA Issue: non -staticdev package contains static .a library Reason: Both /usr/lib/python3.8/site-packages/gpiod.a and /usr/lib/python3.8/site-packages/gpiod.so are in ${PN}-python. Signed-off-by: Christian Bräuner Sørensen <yocto@bsorensen.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-28libgpiod: add ptestSakib Sajal
Added ptest for libgpiod. Requires CONFIG_GPIO_MOCKUP kernel config to be enabled. Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>