Skip to contentSkip to conversation

libgpiod: support for v1.0 series

PATCH New Bartosz Golaszewski 1 participant 5 messages Apr 17, 2018

lore
Share & tools
lore
#0 lore raw

v2 cover libgpiod: support for v1.0 series

I recently released a new major version of libgpiod in which the initial API was heavily reworked. Since it's no longer compatible with v0.3.3 but I know there are users of the latter and I also intend on supporting it for some time, I thought we should have both versions in recipes-support.

This series adds a new recipe for libgpiod v1.0.1 that can live next to v0.3.3.

v1 -> v2:
- there was no reply to the previous series, and new v0.3.x and v1.0.x versions have been released during that time, so v2 bumps the versions

Bartosz Golaszewski (4):
libgpiod: include the version in the recipe filename
libgpiod: split recipe into .inc and .bb files
libgpiod: bump version to v0.3.3
libgpiod: add support for v1.x series

 .../recipes-support/libgpiod/{libgpiod.bb => libgpiod.inc}   | 5 -----
 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb           | 4 ++++
 meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb           | 4 ++++
 3 files changed, 8 insertions(+), 5 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod.bb => libgpiod.inc} (80%)
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb
Signature · 1 line
2.17.0
#1 lore raw

PATCH v2 1/4 libgpiod: include the version in the recipe filename

As the first step in supporting both v0.x and v1.x series: include the version in the recipe filename.

---
 .../recipes-support/libgpiod/{libgpiod.bb => libgpiod_0.3.2.bb} | 2 --
 1 file changed, 2 deletions(-)
 rename meta-oe/recipes-support/libgpiod/{libgpiod.bb => libgpiod_0.3.2.bb} (98%)
meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod.bb +0 -2
similarity index 98%
rename from meta-oe/recipes-support/libgpiod/libgpiod.bb
rename to meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb
index b2e3bae69..20068894e 100644
@@ -8,8 +8,6 @@ SRC_URI = "https://www.kernel.org/pub/software/libs/libgpiod/${BP}.tar.xz"
 SRC_URI[md5sum] = "9c1966bea7dffd59bd099a8b2930e2ea"
 SRC_URI[sha256sum] = "50c7862428ca90b58672e2475aea66d33a6fc86c6bab1928c0660f3aedf44a37"
 
-PV = "0.3.2"
-
 inherit autotools pkgconfig
 
 # enable tools
Signature · 1 line
2.17.0
#2 lore raw

PATCH v2 2/4 libgpiod: split recipe into .inc and .bb files

In reply to Bartosz Golaszewski

The build works the same for v0.x and v1.x series - leave only the hashes in the .bb file and put everything else into .inc.

---
 meta-oe/recipes-support/libgpiod/libgpiod.inc | 21 ++++++++++++++++++
 .../libgpiod/libgpiod_0.3.2.bb                | 22 +------------------
 2 files changed, 22 insertions(+), 21 deletions(-)
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod.inc
meta-oe/recipes-support/libgpiod/libgpiod.inc new file +21 -0
new file mode 100644
index 000000000..cd7750623
@@ -0,0 +1,21 @@
+SUMMARY = "C library and tools for interacting with the linux GPIO character device"
+
+LICENSE = "LGPLv2.1+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
+
+SRC_URI = "https://www.kernel.org/pub/software/libs/libgpiod/${BP}.tar.xz"
+
+inherit autotools pkgconfig
+
+# enable tools
+PACKAGECONFIG ?= "tools"
+
+PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
+PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,"
+
+PACKAGES =+ " ${PN}-tools"
+
+FILES_${PN}-tools = "${bindir}/*"
+
+RRECOMMENDS_TOOLS = "${@bb.utils.contains('PACKAGECONFIG', 'tools', '${PN}-tools', '',d)}"
+RRECOMMENDS_${PN} += "${RRECOMMENDS_TOOLS}"
meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb +1 -21
index 20068894e..ea785ad0c 100644
@@ -1,24 +1,4 @@
-SUMMARY = "C library and tools for interacting with the linux GPIO character device"
-
-LICENSE = "LGPLv2.1+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
-
-SRC_URI = "https://www.kernel.org/pub/software/libs/libgpiod/${BP}.tar.xz"
+require libgpiod.inc
 
 SRC_URI[md5sum] = "9c1966bea7dffd59bd099a8b2930e2ea"
 SRC_URI[sha256sum] = "50c7862428ca90b58672e2475aea66d33a6fc86c6bab1928c0660f3aedf44a37"
-
-inherit autotools pkgconfig
-
-# enable tools
-PACKAGECONFIG ?= "tools"
-
-PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev"
-PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,"
-
-PACKAGES =+ " ${PN}-tools"
-
-FILES_${PN}-tools = "${bindir}/*"
-
-RRECOMMENDS_TOOLS = "${@bb.utils.contains('PACKAGECONFIG', 'tools', '${PN}-tools', '',d)}"
-RRECOMMENDS_${PN} += "${RRECOMMENDS_TOOLS}"
Signature · 1 line
2.17.0
#3 lore raw

PATCH v2 3/4 libgpiod: bump version to v0.3.3

In reply to Bartosz Golaszewski

This is a bug fix release of the v0.3.x series.

---
 meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb | 4 ----
 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb
meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb deleted +0 -4
deleted file mode 100644
index ea785ad0c..000000000
@@ -1,4 +0,0 @@
-require libgpiod.inc
-
-SRC_URI[md5sum] = "9c1966bea7dffd59bd099a8b2930e2ea"
-SRC_URI[sha256sum] = "50c7862428ca90b58672e2475aea66d33a6fc86c6bab1928c0660f3aedf44a37"
meta-oe/recipes-support/libgpiod/libgpiod_0.3.3.bb new file +4 -0
new file mode 100644
index 000000000..09fb65a08
@@ -0,0 +1,4 @@
+require libgpiod.inc
+
+SRC_URI[md5sum] = "2aa1e1a80c3c919ae142ab9a55fb59ca"
+SRC_URI[sha256sum] = "b773e557af1a497f786825462a776b7bf90168e67ee0a5bc5d2473a5674dc38c"
Signature · 1 line
2.17.0
#4 lore raw

PATCH v2 4/4 libgpiod: add support for v1.x series

In reply to Bartosz Golaszewski

Add a recipe for libgpiod v1.0.1. It can live next to the one for v0.3.3.

---
 meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb
meta-oe/recipes-support/libgpiod/libgpiod_1.0.1.bb new file +4 -0
new file mode 100644
index 000000000..51499fd72
@@ -0,0 +1,4 @@
+require libgpiod.inc
+
+SRC_URI[md5sum] = "2ca0c3eb17d69e367b6f6a109ca86e41"
+SRC_URI[sha256sum] = "972924195367f5fb045c023d65340c4b7dfc8764499516be446553865208dedc"
Signature · 1 line
2.17.0