recipes-support: Add handling for libgpiod
PATCH 1/1 recipes-support: Add handling for libgpiod
libgpiod - C library and tools for interacting with the linux GPIO character device
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use the character device instead.
This library encapsulates the ioctl calls and data structures behind a straightforward API.
--- meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +25 -0
@@ -0,0 +1,25 @@ +SUMMARY = "C library and tools for interacting with the linux GPIO character device" +HOMEPAGE = "https://github.com/brgl/libgpiod" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" + +UPSTREAM_CHECK_URI = "https://github.com/brgl/libgpiod/releases" + +SRC_URI = "https://github.com/brgl/libgpiod/archive/v${PV}.tar.gz" + +SRC_URI[md5sum] = "e3430f35b6efa842693d659c0bfb7ad5" +SRC_URI[sha256sum] = "de1947f3cb2cc4174364af430309fe6238976658575655bdbd76c60cffa7df92" + +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} = "${libdir}/*" +FILES_${PN}-tools = "${bindir}/*"
Signature · 1 line
2.7.4
Quoted 20 lines · Marek Belisko
libgpiod - C library and tools for interacting with the linux GPIO character device
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use the character device instead.
This library encapsulates the ioctl calls and data structures behind a straightforward API.Signed-off-by Marek Belisko <[email protected]>--- meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_0.2.bbmeta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +0
-0
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb line 9
Quoted 9 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +9
-0@@ -0,0 +1,25 @@ +SUMMARY = "C library and tools for interacting with the linux GPIO character device" +HOMEPAGE = "https://github.com/brgl/libgpiod" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" + +UPSTREAM_CHECK_URI = "https://github.com/brgl/libgpiod/releases" + +SRC_URI = "https://github.com/brgl/libgpiod/archive/v${PV}.tar.gz"
Github archives are regenerated from time to time with different checksums, please use git fetcher and SRCREV matching with the SHA of the tag.
Quoted 5 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +5
-0+ +SRC_URI[md5sum] = "e3430f35b6efa842693d659c0bfb7ad5" +SRC_URI[sha256sum] = "de1947f3cb2cc4174364af430309fe6238976658575655bdbd76c60cffa7df92" + +inherit autotools pkgconfig
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb line 24
Quoted 10 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +10
-0+ +# enable tools +PACKAGECONFIG ?= "tools" + +PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" +PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," + +PACKAGES += " ${PN}-tools" + +FILES_${PN} = "${libdir}/*"
What is missing in the default FILES_${PN}?
Quoted 9 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +1
-0+FILES_${PN}-tools = "${bindir}/*"Signature · 7 lines
2.7.4 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Hi Martin,
Quoted 26 lines · Martin Jansa
Quoted 25 lines · Marek Belisko
libgpiod - C library and tools for interacting with the linux GPIO character device
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use the character device instead.
This library encapsulates the ioctl calls and data structures behind a straightforward API.Signed-off-by Marek Belisko <[email protected]>--- meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_0.2.bbmeta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +5
-0@@ -0,0 +1,25 @@ +SUMMARY = "C library and tools for interacting with the linux GPIO character device" +HOMEPAGE = "https://github.com/brgl/libgpiod" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de"
Quoted 8 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb line 9
Quoted 4 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +4
-0+ +UPSTREAM_CHECK_URI = "https://github.com/brgl/libgpiod/releases" + +SRC_URI = "https://github.com/brgl/libgpiod/archive/v${PV}.tar.gz"Github archives are regenerated from time to time with different checksums, please use git fetcher and SRCREV matching with the SHA of the tag.
OK I'll update.
Quoted 10 lines
Quoted 10 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +9
-0+ +SRC_URI[md5sum] = "e3430f35b6efa842693d659c0bfb7ad5" +SRC_URI[sha256sum] = "de1947f3cb2cc4174364af430309fe6238976658575655bdbd76c60cffa7df92" + +inherit autotools pkgconfig + +# enable tools +PACKAGECONFIG ?= "tools" +
Quoted 8 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb line 24
Quoted 6 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +6
-0+PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev" +PACKAGECONFIG[tools] = "--enable-tools,--disable-tools," + +PACKAGES += " ${PN}-tools" + +FILES_${PN} = "${libdir}/*"What is missing in the default FILES_${PN}?
You're right it's not necessary to have this line. I'll drop it. I also drop PV from recipe name and you PV = "0.2+git{SRCPV}" is that OK? Thanks.
Will post V2 soon.
Quoted 5 lines
Quoted 5 lines
meta-oe/recipes-support/libgpiod/libgpiod_0.2.bb new file +1
-1+FILES_${PN}-tools = "${bindir}/*" --2.7.4
Quoted 8 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]
BR,
marek
Signature · 10 lines
as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com
PATCH v2 1/1 recipes-support: Add handling for libgpiod
In reply to Marek Beliskolibgpiod - C library and tools for interacting with the linux GPIO character device
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use the character device instead.
This library encapsulates the ioctl calls and data structures behind a straightforward API.
---
V2: Fixed comments from Martin Jansa
meta/recipes-support/libgpiod/libgpiod.bb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-support/libgpiod/libgpiod.bb
meta/recipes-support/libgpiod/libgpiod.bb new file +30 -0
@@ -0,0 +1,30 @@ +SUMMARY = "C library and tools for interacting with the linux GPIO character device" +HOMEPAGE = "https://github.com/brgl/libgpiod" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=2caced0b25dfefd4c601d92bd15116de" + +UPSTREAM_CHECK_URI = "git://github.com/brgl/libgpiod/releases" + +SRC_URI = "git://github.com/brgl/libgpiod.git" + +SRCREV = "7ab5e53b69cce313ba87033a442cabd417f5d895" + +PV = "0.2+git${SRCPV}" + +S = "${WORKDIR}/git" + +SRC_URI[md5sum] = "68f039487e940c15bbfc50a10ab4715b" +SRC_URI[sha256sum] = "7d7085d4e9cb811742ca8c5fe03458067efaeaa8abc23968d2e3c56bcc2d2ef8" + +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}/*"
Signature · 1 line
2.7.4