openocd: Enable linuxgpiod build option
PATCH v2 1/1 openocd: Enable linuxgpiod build option
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.%".
---
@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(+)
meta-oe/recipes-devtools/openocd/openocd_git.bb +3 -0
@@ -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 +PACKAGECONFIG[linuxgpiod] = "--enable-linuxgpiod,--disable-linuxgpiod, libgpiod" PACKAGECONFIG[sysfsgpio] = "--enable-sysfsgpio,--disable-sysfsgpio" PACKAGECONFIG[remote-bitbang] = "--enable-remote-bitbang,--disable-remote-bitbang" PACKAGECONFIG ??= "sysfsgpio remote-bitbang"
Signature · 1 line
2.45.2
Quoted 21 lines · Sean Nyekjaer via lists.openembedded.org
Enable the linuxgpiod via PACKAGECONFIG to allow to use swd via libgpiod.
linuxgpiod requires libgpiod 1.x, so it's required to addPREFERRED_VERSION_libgpiod= "1.%".Signed-off-by Sean Nyekjaer <[email protected]>---
@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(+)meta-oe/recipes-devtools/openocd/openocd_git.bb +0
-0
meta-oe/recipes-devtools/openocd/openocd_git.bb FILES:${PN} = " \ · line 55
Quoted 5 lines
meta-oe/recipes-devtools/openocd/openocd_git.bb +2
-0@@ -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.
Bart
Quoted 16 lines
meta-oe/recipes-devtools/openocd/openocd_git.bb +1
-1+PACKAGECONFIG[linuxgpiod] = "--enable-linuxgpiod,--disable-linuxgpiod, libgpiod" PACKAGECONFIG[sysfsgpio] = "--enable-sysfsgpio,--disable-sysfsgpio" PACKAGECONFIG[remote-bitbang] = "--enable-remote-bitbang,--disable-remote-bitbang" PACKAGECONFIG ??= "sysfsgpio remote-bitbang" --2.45.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#111294): https://lists.openembedded.org/g/openembedded-devel/message/111294
Mute This Topic: https://lists.openembedded.org/mt/107140078/3618139
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 31 lines · Bartosz Golaszewski
Quoted 21 lines · Sean Nyekjaer via lists.openembedded.org
Enable the linuxgpiod via PACKAGECONFIG to allow to use swd via libgpiod.
linuxgpiod requires libgpiod 1.x, so it's required to addPREFERRED_VERSION_libgpiod= "1.%".Signed-off-by Sean Nyekjaer <[email protected]>---
@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(+)meta-oe/recipes-devtools/openocd/openocd_git.bb +0
-0meta-oe/recipes-devtools/openocd/openocd_git.bb FILES:${PN} = " \ · line 55
Quoted 5 lines
meta-oe/recipes-devtools/openocd/openocd_git.bb +2
-0@@ -51,6 +51,9 @@ FILES:${PN} = " \ ${bindir}/openocd \ " +# To build with linuxgpiod it requires libgpiod 1.x. +# Add PREFERRED_VERSION_libgpiod = "1.%" to local.confKeep this comment but add:
Quoted 4 lines
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.
Quoted 2 lines
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