* [meta-oe][PATCH 0/3] libgpiod: support for v1.0 series
@ 2018-03-23 11:07 Bartosz Golaszewski
2018-03-23 11:07 ` [meta-oe][PATCH 1/3] libgpiod: include the version in the recipe filename Bartosz Golaszewski
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2018-03-23 11:07 UTC (permalink / raw)
To: Koen Kooi, Martin Jansa; +Cc: openembedded-devel
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.2 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 that can live next to
v0.3.2.
Bartosz Golaszewski (3):
libgpiod: include the version in the recipe filename
libgpiod: split recipe into .inc and .bb files
libgpiod: add support for v1.x series
meta-oe/recipes-support/libgpiod/{libgpiod.bb => libgpiod.inc} | 5 -----
meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb | 4 ++++
meta-oe/recipes-support/libgpiod/libgpiod_1.0.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.2.bb
create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_1.0.bb
--
2.16.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [meta-oe][PATCH 1/3] libgpiod: include the version in the recipe filename 2018-03-23 11:07 [meta-oe][PATCH 0/3] libgpiod: support for v1.0 series Bartosz Golaszewski @ 2018-03-23 11:07 ` Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 2/3] libgpiod: split recipe into .inc and .bb files Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 3/3] libgpiod: add support for v1.x series Bartosz Golaszewski 2 siblings, 0 replies; 4+ messages in thread From: Bartosz Golaszewski @ 2018-03-23 11:07 UTC (permalink / raw) To: Koen Kooi, Martin Jansa; +Cc: openembedded-devel As the first step in supporting both v0.x and v1.x series: include the version in the recipe filename. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> --- meta-oe/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%) diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.bb b/meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb 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 --- a/meta-oe/recipes-support/libgpiod/libgpiod.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb @@ -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 -- 2.16.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-oe][PATCH 2/3] libgpiod: split recipe into .inc and .bb files 2018-03-23 11:07 [meta-oe][PATCH 0/3] libgpiod: support for v1.0 series Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 1/3] libgpiod: include the version in the recipe filename Bartosz Golaszewski @ 2018-03-23 11:07 ` Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 3/3] libgpiod: add support for v1.x series Bartosz Golaszewski 2 siblings, 0 replies; 4+ messages in thread From: Bartosz Golaszewski @ 2018-03-23 11:07 UTC (permalink / raw) To: Koen Kooi, Martin Jansa; +Cc: openembedded-devel 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. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> --- meta-oe/recipes-support/libgpiod/libgpiod.inc | 21 +++++++++++++++++++++ meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb | 22 +--------------------- 2 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod.inc diff --git a/meta-oe/recipes-support/libgpiod/libgpiod.inc b/meta-oe/recipes-support/libgpiod/libgpiod.inc new file mode 100644 index 000000000..cd7750623 --- /dev/null +++ b/meta-oe/recipes-support/libgpiod/libgpiod.inc @@ -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}" diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb b/meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb index 20068894e..ea785ad0c 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_0.3.2.bb @@ -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}" -- 2.16.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-oe][PATCH 3/3] libgpiod: add support for v1.x series 2018-03-23 11:07 [meta-oe][PATCH 0/3] libgpiod: support for v1.0 series Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 1/3] libgpiod: include the version in the recipe filename Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 2/3] libgpiod: split recipe into .inc and .bb files Bartosz Golaszewski @ 2018-03-23 11:07 ` Bartosz Golaszewski 2 siblings, 0 replies; 4+ messages in thread From: Bartosz Golaszewski @ 2018-03-23 11:07 UTC (permalink / raw) To: Koen Kooi, Martin Jansa; +Cc: openembedded-devel Add a recipe for libgpiod v1.0. It can live next to the one for v0.3.2. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> --- meta-oe/recipes-support/libgpiod/libgpiod_1.0.bb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_1.0.bb diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.0.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.0.bb new file mode 100644 index 000000000..06d7efeb0 --- /dev/null +++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.0.bb @@ -0,0 +1,4 @@ +require libgpiod.inc + +SRC_URI[md5sum] = "e38a67d01964f727703da9f698bfa53e" +SRC_URI[sha256sum] = "34c76b3730b9d4a1159bcb14000f78b1e890251b8a3823b794fa930654eabdd0" -- 2.16.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-23 11:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-03-23 11:07 [meta-oe][PATCH 0/3] libgpiod: support for v1.0 series Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 1/3] libgpiod: include the version in the recipe filename Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 2/3] libgpiod: split recipe into .inc and .bb files Bartosz Golaszewski 2018-03-23 11:07 ` [meta-oe][PATCH 3/3] libgpiod: add support for v1.x series Bartosz Golaszewski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox