* [Buildroot] [PATCH 1/1] package/openocd: fix build with libgpiod2
@ 2024-05-06 20:52 Fabrice Fontaine
2024-05-07 7:12 ` Thomas Petazzoni via buildroot
2024-05-27 14:43 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-05-06 20:52 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
openocd is not compatible with libgpiod2 resulting in the following
build failure since the addition of libgpiod2 in commit
57391fad2e619395340b81957ddceab1b1df2e20:
src/jtag/drivers/linuxgpiod.c: In function 'helper_get_line':
src/jtag/drivers/linuxgpiod.c:283:19: error: 'GPIOD_LINE_REQUEST_DIRECTION_INPUT' undeclared (first use in this function); did you mean 'GPIOD_LINE_DIRECTION_INPUT'?
283 | int dir = GPIOD_LINE_REQUEST_DIRECTION_INPUT, flags = 0, val = 0, retval;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| GPIOD_LINE_DIRECTION_INPUT
Fixes: 57391fad2e619395340b81957ddceab1b1df2e20
- http://autobuild.buildroot.org/results/7195e8b76350f26ab3b963702d88b254512e6928
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/openocd/openocd.mk | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
index 78c6e10c58..b24d1eacf0 100644
--- a/package/openocd/openocd.mk
+++ b/package/openocd/openocd.mk
@@ -56,8 +56,14 @@ OPENOCD_DEPENDENCIES = \
$(if $(BR2_PACKAGE_LIBUSB),libusb) \
$(if $(BR2_PACKAGE_LIBUSB_COMPAT),libusb-compat) \
$(if $(BR2_PACKAGE_LIBHID),libhid) \
- $(if $(BR2_PACKAGE_HIDAPI),hidapi) \
- $(if $(BR2_PACKAGE_LIBGPIOD),libgpiod)
+ $(if $(BR2_PACKAGE_HIDAPI),hidapi)
+
+ifeq ($(BR2_PACKAGE_LIBGPIOD),y)
+OPENOCD_DEPENDENCIES += libgpiod
+OPENOCD_CONF_OPTS += --enable-linuxgpiod
+else
+OPENOCD_CONF_OPTS += --disable-linuxgpiod
+endif
# Adapters
OPENOCD_CONF_OPTS += \
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH 1/1] package/openocd: fix build with libgpiod2
2024-05-06 20:52 [Buildroot] [PATCH 1/1] package/openocd: fix build with libgpiod2 Fabrice Fontaine
@ 2024-05-07 7:12 ` Thomas Petazzoni via buildroot
2024-05-27 14:43 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-07 7:12 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Mon, 6 May 2024 22:52:49 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> openocd is not compatible with libgpiod2 resulting in the following
> build failure since the addition of libgpiod2 in commit
> 57391fad2e619395340b81957ddceab1b1df2e20:
>
> src/jtag/drivers/linuxgpiod.c: In function 'helper_get_line':
> src/jtag/drivers/linuxgpiod.c:283:19: error: 'GPIOD_LINE_REQUEST_DIRECTION_INPUT' undeclared (first use in this function); did you mean 'GPIOD_LINE_DIRECTION_INPUT'?
> 283 | int dir = GPIOD_LINE_REQUEST_DIRECTION_INPUT, flags = 0, val = 0, retval;
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | GPIOD_LINE_DIRECTION_INPUT
>
> Fixes: 57391fad2e619395340b81957ddceab1b1df2e20
> - http://autobuild.buildroot.org/results/7195e8b76350f26ab3b963702d88b254512e6928
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/openocd/openocd.mk | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/openocd: fix build with libgpiod2
2024-05-06 20:52 [Buildroot] [PATCH 1/1] package/openocd: fix build with libgpiod2 Fabrice Fontaine
2024-05-07 7:12 ` Thomas Petazzoni via buildroot
@ 2024-05-27 14:43 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-05-27 14:43 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> openocd is not compatible with libgpiod2 resulting in the following
> build failure since the addition of libgpiod2 in commit
> 57391fad2e619395340b81957ddceab1b1df2e20:
> src/jtag/drivers/linuxgpiod.c: In function 'helper_get_line':
> src/jtag/drivers/linuxgpiod.c:283:19: error:
> 'GPIOD_LINE_REQUEST_DIRECTION_INPUT' undeclared (first use in this
> function); did you mean 'GPIOD_LINE_DIRECTION_INPUT'?
> 283 | int dir = GPIOD_LINE_REQUEST_DIRECTION_INPUT, flags = 0, val = 0, retval;
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | GPIOD_LINE_DIRECTION_INPUT
> Fixes: 57391fad2e619395340b81957ddceab1b1df2e20
> - http://autobuild.buildroot.org/results/7195e8b76350f26ab3b963702d88b254512e6928
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2024.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-27 14:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-06 20:52 [Buildroot] [PATCH 1/1] package/openocd: fix build with libgpiod2 Fabrice Fontaine
2024-05-07 7:12 ` Thomas Petazzoni via buildroot
2024-05-27 14:43 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox