* [PATCH] recipes-support: Add recipe for libgpiod
[not found] <1494364209-17742-1-git-send-email-marek.belisko@open-nandra.com>
@ 2017-05-10 6:44 ` Belisko Marek
0 siblings, 0 replies; 7+ messages in thread
From: Belisko Marek @ 2017-05-10 6:44 UTC (permalink / raw)
To: openembedded-core
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 <marek.belisko@open-nandra.com>
---
meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb
diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb
b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
new file mode 100644
index 0000000..fe2cd80
--- /dev/null
+++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
@@ -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}/*"
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] recipes-support: Add recipe for libgpiod
@ 2017-05-11 17:43 Marek Belisko
2017-05-11 18:19 ` Denys Dmytriyenko
0 siblings, 1 reply; 7+ messages in thread
From: Marek Belisko @ 2017-05-11 17:43 UTC (permalink / raw)
To: openembedded-core; +Cc: 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 <marek.belisko@open-nandra.com>
---
meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb
diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
new file mode 100644
index 0000000..fe2cd80
--- /dev/null
+++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
@@ -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}/*"
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] recipes-support: Add recipe for libgpiod
2017-05-11 17:43 [PATCH] recipes-support: Add recipe for libgpiod Marek Belisko
@ 2017-05-11 18:19 ` Denys Dmytriyenko
2017-05-11 18:50 ` Belisko Marek
0 siblings, 1 reply; 7+ messages in thread
From: Denys Dmytriyenko @ 2017-05-11 18:19 UTC (permalink / raw)
To: Marek Belisko; +Cc: openembedded-core
Not to derail your enthusiasm, but since this is being proposed for OE-Core,
how is it better than libsoc by Jack Mitchell?
On Thu, May 11, 2017 at 07:43:00PM +0200, Marek Belisko wrote:
> 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 <marek.belisko@open-nandra.com>
> ---
> meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb
>
> diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
> new file mode 100644
> index 0000000..fe2cd80
> --- /dev/null
> +++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
> @@ -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}/*"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] recipes-support: Add recipe for libgpiod
2017-05-11 18:19 ` Denys Dmytriyenko
@ 2017-05-11 18:50 ` Belisko Marek
2017-05-11 22:28 ` Denys Dmytriyenko
0 siblings, 1 reply; 7+ messages in thread
From: Belisko Marek @ 2017-05-11 18:50 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: Patches and discussions about the oe-core layer
On Thu, May 11, 2017 at 8:19 PM, Denys Dmytriyenko <denis@denix.org> wrote:
> Not to derail your enthusiasm, but since this is being proposed for OE-Core,
> how is it better than libsoc by Jack Mitchell?
libsoc is fine but libgpiod will implement correctly gpio handling in
userspace as gpio sysfs is deprecated.
What is the problem to have libgpiod available for other potential
users? Thanks.
More here: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1392949.html
>
>
> On Thu, May 11, 2017 at 07:43:00PM +0200, Marek Belisko wrote:
>> 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 <marek.belisko@open-nandra.com>
>> ---
>> meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 +++++++++++++++++++++++++
>> 1 file changed, 25 insertions(+)
>> create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb
>>
>> diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
>> new file mode 100644
>> index 0000000..fe2cd80
>> --- /dev/null
>> +++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
>> @@ -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}/*"
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
BR,
marek
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] recipes-support: Add recipe for libgpiod
2017-05-11 18:50 ` Belisko Marek
@ 2017-05-11 22:28 ` Denys Dmytriyenko
2017-05-12 14:23 ` Burton, Ross
2017-05-12 14:40 ` Jack Mitchell
0 siblings, 2 replies; 7+ messages in thread
From: Denys Dmytriyenko @ 2017-05-11 22:28 UTC (permalink / raw)
To: Belisko Marek; +Cc: Patches and discussions about the oe-core layer
On Thu, May 11, 2017 at 08:50:09PM +0200, Belisko Marek wrote:
> On Thu, May 11, 2017 at 8:19 PM, Denys Dmytriyenko <denis@denix.org> wrote:
> > Not to derail your enthusiasm, but since this is being proposed for OE-Core,
> > how is it better than libsoc by Jack Mitchell?
> libsoc is fine but libgpiod will implement correctly gpio handling in
> userspace as gpio sysfs is deprecated.
> What is the problem to have libgpiod available for other potential
> users? Thanks.
As far as I know, libsoc is still being actively supported and if there's an
API change, it should be fixed in no time. That's why I'm copying Jack here,
who is an active OE developer here.
As of having an alternative for other potential users - there's nothing wrong
with it. But, acceptance criteria into OE-Core is quite high, especially when
there are alternative solutions already available. That's why I'm asking if
it's any better than the other solution. In other words, why libgpiod should
be accepted to OE-Core, but not libsoc? Maybe it should be submitted to
meta-openembedded layer instead?
> More here: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1392949.html
> >
> >
> > On Thu, May 11, 2017 at 07:43:00PM +0200, Marek Belisko wrote:
> >> 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 <marek.belisko@open-nandra.com>
> >> ---
> >> meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 +++++++++++++++++++++++++
> >> 1 file changed, 25 insertions(+)
> >> create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb
> >>
> >> diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
> >> new file mode 100644
> >> index 0000000..fe2cd80
> >> --- /dev/null
> >> +++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
> >> @@ -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}/*"
> >> --
> >> 2.7.4
> >>
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
> BR,
>
> marek
>
> --
> 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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] recipes-support: Add recipe for libgpiod
2017-05-11 22:28 ` Denys Dmytriyenko
@ 2017-05-12 14:23 ` Burton, Ross
2017-05-12 14:40 ` Jack Mitchell
1 sibling, 0 replies; 7+ messages in thread
From: Burton, Ross @ 2017-05-12 14:23 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]
On 11 May 2017 at 23:28, Denys Dmytriyenko <denis@denix.org> wrote:
> As of having an alternative for other potential users - there's nothing
> wrong
> with it. But, acceptance criteria into OE-Core is quite high, especially
> when
> there are alternative solutions already available. That's why I'm asking if
> it's any better than the other solution. In other words, why libgpiod
> should
> be accepted to OE-Core, but not libsoc? Maybe it should be submitted to
> meta-openembedded layer instead?
>
Agreed, the barrier for oe-core is high on purpose and I don't think this
is general purpose enough. meta-oe is a perfect fit though.
Ross
[-- Attachment #2: Type: text/html, Size: 1081 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] recipes-support: Add recipe for libgpiod
2017-05-11 22:28 ` Denys Dmytriyenko
2017-05-12 14:23 ` Burton, Ross
@ 2017-05-12 14:40 ` Jack Mitchell
1 sibling, 0 replies; 7+ messages in thread
From: Jack Mitchell @ 2017-05-12 14:40 UTC (permalink / raw)
To: Denys Dmytriyenko, Belisko Marek
Cc: Patches and discussions about the oe-core layer
On 11/05/17 23:28, Denys Dmytriyenko wrote:
> On Thu, May 11, 2017 at 08:50:09PM +0200, Belisko Marek wrote:
>> On Thu, May 11, 2017 at 8:19 PM, Denys Dmytriyenko <denis@denix.org> wrote:
>>> Not to derail your enthusiasm, but since this is being proposed for OE-Core,
>>> how is it better than libsoc by Jack Mitchell?
>> libsoc is fine but libgpiod will implement correctly gpio handling in
>> userspace as gpio sysfs is deprecated.
>> What is the problem to have libgpiod available for other potential
>> users? Thanks.
> As far as I know, libsoc is still being actively supported and if there's an
> API change, it should be fixed in no time. That's why I'm copying Jack here,
> who is an active OE developer here.
>
> As of having an alternative for other potential users - there's nothing wrong
> with it. But, acceptance criteria into OE-Core is quite high, especially when
> there are alternative solutions already available. That's why I'm asking if
> it's any better than the other solution. In other words, why libgpiod should
> be accepted to OE-Core, but not libsoc? Maybe it should be submitted to
> meta-openembedded layer instead?
I would agree that this should go in meta-oe.
I haven't implemented the new ioctl interface yet in libsoc and there is
no reason why there can't be two libraries with similar functionallity.
Cheers,
Jack.
>
>
>> More here: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1392949.html
>>>
>>> On Thu, May 11, 2017 at 07:43:00PM +0200, Marek Belisko wrote:
>>>> 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 <marek.belisko@open-nandra.com>
>>>> ---
>>>> meta/recipes-support/libgpiod/libgpiod_0.2.bb | 25 +++++++++++++++++++++++++
>>>> 1 file changed, 25 insertions(+)
>>>> create mode 100644 meta/recipes-support/libgpiod/libgpiod_0.2.bb
>>>>
>>>> diff --git a/meta/recipes-support/libgpiod/libgpiod_0.2.bb b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
>>>> new file mode 100644
>>>> index 0000000..fe2cd80
>>>> --- /dev/null
>>>> +++ b/meta/recipes-support/libgpiod/libgpiod_0.2.bb
>>>> @@ -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}/*"
>>>> --
>>>> 2.7.4
>>>>
>>>> --
>>>> _______________________________________________
>>>> Openembedded-core mailing list
>>>> Openembedded-core@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>> BR,
>>
>> marek
>>
>> --
>> 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
>>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-05-12 15:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 17:43 [PATCH] recipes-support: Add recipe for libgpiod Marek Belisko
2017-05-11 18:19 ` Denys Dmytriyenko
2017-05-11 18:50 ` Belisko Marek
2017-05-11 22:28 ` Denys Dmytriyenko
2017-05-12 14:23 ` Burton, Ross
2017-05-12 14:40 ` Jack Mitchell
[not found] <1494364209-17742-1-git-send-email-marek.belisko@open-nandra.com>
2017-05-10 6:44 ` Belisko Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox