Skip to content

libgpiod: add support for libgpiod v2

Bartosz Golaszewski openembedded-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v13 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Several bugs detected in master-next were fixed and this recipe adds support for libgpiod v2.0-c2. The package now builds with clang, musl as well as clang & musl.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libgpiod: add a recipe for libgpiod v2.0-rc2meta-oe/recipes-support/libgpiod/libgpiod-1.6.4/run-ptest meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc2/run-ptest meta-oe/recipes-support/libgpiod/libgpiod-src.inc +3 more+113 -500 replies
2/2python3-gpiod: new packagemeta-python/recipes-core/packagegroups/packagegroup-meta-python.bb meta-python/recipes-devtools/python/python3-gpiod/run-ptest meta-python/recipes-devtools/python/python3-gpiod_2.0-rc2.bb+61 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [meta-oe][PATCH v2 0/2] libgpiod: add support for libgpiod v2

From: Bartosz Golaszewski <[email protected]>

We've just tagged the release candidate for libgpiod v2. This is a major release entirely overhauling the API in a backward incompatible way.

While this is not the final release yet, it's not likely to change much so I'd like to make it available in meta-openembedded to give it exposure to some testing. When we do release v2.0, it'll be just a matter of bumping the version.

Currently no other package depends on libgpiod in meta-openembedded, so I'd like to avoid having two packages (libgpiod and libgpiod2). Instead let's provide recipes for both versions but keep them under the common libgpiod name as it's unlikely anyone would need both versions in a single system. This is after all a medium-sized project that shouldn't require too much work in order to port a user to the new major release.

The first patch contains an update of libgpiod v1.6.x to the most recent bug-fix release.

The second contains the recipe for libgpiod v2.0-rc1 while also moving the bitbake code around in order to factor out common elements.

The third contains a recipe for the python bindings that are now in their own project in meta-python.

The new recipes provide the same functionality - including ptest for the C library, tools and language bindings.

v1 -> v2:
- Several bugs detected in master-next were fixed and this recipe adds support for libgpiod v2.0-c2. The package now builds with clang, musl as well as clang & musl.

Bartosz Golaszewski (2):
libgpiod: add a recipe for libgpiod v2.0-rc2
python3-gpiod: new package

 .../{files => libgpiod-1.6.4}/run-ptest       |  0
 .../libgpiod/libgpiod-2.0-rc2/run-ptest       | 24 ++++++++
 .../recipes-support/libgpiod/libgpiod-src.inc |  1 +
 meta-oe/recipes-support/libgpiod/libgpiod.inc | 61 +++++++++++++++++++
 .../libgpiod/libgpiod_1.6.4.bb                | 56 ++---------------
 .../libgpiod/libgpiod_2.0-rc2.bb              | 21 +++++++
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 .../python/python3-gpiod/run-ptest            | 15 +++++
 .../python/python3-gpiod_2.0-rc2.bb           | 45 ++++++++++++++
 9 files changed, 174 insertions(+), 50 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{files => libgpiod-1.6.4}/run-ptest (100%)
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.0-rc2/run-ptest
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-src.inc
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod.inc
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.0-rc2.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-gpiod/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python3-gpiod_2.0-rc2.bb
Signature · 1 line
2.37.2