All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/openocd: add XDS110 option
@ 2021-06-13 14:47 Fabrice Fontaine
  2021-07-03 21:35 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-06-13 14:47 UTC (permalink / raw)
  To: buildroot

XDS110 is available (and enabled by default) since version 0.11.0 and
https://github.com/ntfreak/openocd/commit/2ba27e2f3edd37e5dce4b2a231d2ae84c14cb59a

It raises the following build failure without wchar:

/home/giuliobenetti/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: src/.libs/libopenocd.a(src_jtag_drivers_libocdjtagdrivers_la-xds110.o): in function `xds110_handle_serial_command':
xds110.c:(.text+0x368): undefined reference to `mbstowcs'

Fixes:
 - http://autobuild.buildroot.org/results/4536ed9124e77547c5e29f710fcafccc17b80a05

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/openocd/Config.in  | 14 ++++++++++++++
 package/openocd/openocd.mk |  1 +
 2 files changed, 15 insertions(+)

diff --git a/package/openocd/Config.in b/package/openocd/Config.in
index f2e79f29fe..0fc5a670f2 100644
--- a/package/openocd/Config.in
+++ b/package/openocd/Config.in
@@ -114,6 +114,20 @@ config BR2_PACKAGE_OPENOCD_VSLLINK
 	  Enable building support for the Versaloon-Link JTAG
 	  Programmer (default is auto)
 
+config BR2_PACKAGE_OPENOCD_XDS110
+	bool "TI XDS110 Debug Probe"
+	depends on BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb-compat -> libusb
+	select BR2_PACKAGE_LIBUSB
+	select BR2_PACKAGE_LIBUSB_COMPAT
+	help
+	  Enable building support for the TI XDS110 Debug
+	  Probe (default is auto)
+
+comment "TI XDS110 Debug Probe needs a toolchain w/ wchar"
+	depends on !BR2_USE_WCHAR
+
 config BR2_PACKAGE_OPENOCD_USBPROG
 	bool "USBProg JTAG Programmer"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb-compat -> libusb
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
index b74426ff47..1254188aef 100644
--- a/package/openocd/openocd.mk
+++ b/package/openocd/openocd.mk
@@ -47,6 +47,7 @@ OPENOCD_CONF_OPTS += \
 	$(if $(BR2_PACKAGE_OPENOCD_OPENDOUS),--enable-opendous,--disable-opendous) \
 	$(if $(BR2_PACKAGE_OPENOCD_AICE),--enable-aice,--disable-aice) \
 	$(if $(BR2_PACKAGE_OPENOCD_VSLLINK),--enable-vsllink,--disable-vsllink) \
+	$(if $(BR2_PACKAGE_OPENOCD_XDS110),--enable-xds110,--disable-xds110) \
 	$(if $(BR2_PACKAGE_OPENOCD_USBPROG),--enable-usbprog,--disable-usbprog) \
 	$(if $(BR2_PACKAGE_OPENOCD_RLINK),--enable-rlink,--disable-rlink) \
 	$(if $(BR2_PACKAGE_OPENOCD_ARMEW),--enable-armjtagew,--disable-armjtagew) \
-- 
2.30.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/openocd: add XDS110 option
  2021-06-13 14:47 [Buildroot] [PATCH 1/1] package/openocd: add XDS110 option Fabrice Fontaine
@ 2021-07-03 21:35 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-07-03 21:35 UTC (permalink / raw)
  To: buildroot

On Sun, 13 Jun 2021 16:47:22 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> XDS110 is available (and enabled by default) since version 0.11.0 and
> https://github.com/ntfreak/openocd/commit/2ba27e2f3edd37e5dce4b2a231d2ae84c14cb59a
> 
> It raises the following build failure without wchar:
> 
> /home/giuliobenetti/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: src/.libs/libopenocd.a(src_jtag_drivers_libocdjtagdrivers_la-xds110.o): in function `xds110_handle_serial_command':
> xds110.c:(.text+0x368): undefined reference to `mbstowcs'
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/4536ed9124e77547c5e29f710fcafccc17b80a05
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/openocd/Config.in  | 14 ++++++++++++++
>  package/openocd/openocd.mk |  1 +
>  2 files changed, 15 insertions(+)

Sorry, I am seeing your change just now, and in the mean time applied a
similar change from Baruch.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-03 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 14:47 [Buildroot] [PATCH 1/1] package/openocd: add XDS110 option Fabrice Fontaine
2021-07-03 21:35 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.