On Wed, Jul 10, 2024 at 01:11:50PM UTC, Bartosz Golaszewski wrote: > On Wed, Jul 10, 2024 at 12:45 PM Sean Nyekjaer via > lists.openembedded.org <sean=geanix....@lists.openembedded.org> wrote: > > > > Enable the linuxgpiod via PACKAGECONFIG to allow to use swd via > > libgpiod. > > linuxgpiod requires libgpiod 1.x, so it's required to add > > PREFERRED_VERSION_libgpiod = "1.%". > > > > Signed-off-by: Sean Nyekjaer <s...@geanix.com> > > --- > > > > @Bartosz it would be nice to be able to depend on libgpiod-1.x. > > Guess the libraries could co-exist and then the libgpiod tools could be > > from the 2.x. > > > > meta-oe/recipes-devtools/openocd/openocd_git.bb | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/meta-oe/recipes-devtools/openocd/openocd_git.bb > > b/meta-oe/recipes-devtools/openocd/openocd_git.bb > > index 559fe29ff..8c411ec5c 100644 > > --- a/meta-oe/recipes-devtools/openocd/openocd_git.bb > > +++ b/meta-oe/recipes-devtools/openocd/openocd_git.bb > > @@ -51,6 +51,9 @@ FILES:${PN} = " \ > > ${bindir}/openocd \ > > " > > > > +# To build with linuxgpiod it requires libgpiod 1.x. > > +# Add PREFERRED_VERSION_libgpiod = "1.%" to local.conf > > Keep this comment but add: > > RDEPENDS:${PN} += "libgpiod (<= 1.6.5)" > > to this recipe to avoid build-time errors when the right version of > the library is not available. Good idea. > > Bart
Hi Bart, I have tried: RDEPENDS:${PN} += "libgpiod (<= 1.6.5)" and/or PACKAGECONFIG[linuxgpiod] = "--enable-linuxgpiod,--disable-linuxgpiod, libgpiod, libgpiod (<= 1.6.5)" I still get buildtime errors :/ /Sean
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#111297): https://lists.openembedded.org/g/openembedded-devel/message/111297 Mute This Topic: https://lists.openembedded.org/mt/107140078/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-