Skip to content

Commit a168c63

Browse files
tom-vanborneoa
authored andcommitted
configure: better differentiate CMSIS-DAP versions
and keep them together in the configuration summary. Change-Id: I5937393590ac72f1d499457e67763686a79cadee Signed-off-by: Tomas Vanek <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8765 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent d126cdb commit a168c63

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

configure.ac

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,19 @@ m4_define([USB1_ADAPTERS],
136136
[[ft232r], [Bitbang mode of FT232R based devices], [FT232R]],
137137
[[vsllink], [Versaloon-Link JTAG Programmer], [VSLLINK]],
138138
[[xds110], [TI XDS110 Debug Probe], [XDS110]],
139-
[[cmsis_dap_v2], [CMSIS-DAP v2 Compliant Debugger], [CMSIS_DAP_USB]],
140139
[[osbdm], [OSBDM (JTAG only) Programmer], [OSBDM]],
141140
[[opendous], [eStick/opendous JTAG Programmer], [OPENDOUS]],
142141
[[armjtagew], [Olimex ARM-JTAG-EW Programmer], [ARMJTAGEW]],
143142
[[rlink], [Raisonance RLink JTAG Programmer], [RLINK]],
144143
[[usbprog], [USBProg JTAG Programmer], [USBPROG]],
145-
[[esp_usb_jtag], [Espressif JTAG Programmer], [ESP_USB_JTAG]]])
144+
[[esp_usb_jtag], [Espressif JTAG Programmer], [ESP_USB_JTAG]],
145+
[[cmsis_dap_v2], [CMSIS-DAP v2 compliant dongle (USB bulk)], [CMSIS_DAP_USB]]])
146+
147+
# Please keep cmsis_dap_v2 the last in USB1_ADAPTERS
148+
# and cmsis_dap the first in HIDAPI_ADAPTERS
146149

147150
m4_define([HIDAPI_ADAPTERS],
148-
[[[cmsis_dap], [CMSIS-DAP Compliant Debugger], [CMSIS_DAP_HID]],
151+
[[[cmsis_dap], [CMSIS-DAP v1 compliant dongle (HID)], [CMSIS_DAP_HID]],
149152
[[nulink], [Nu-Link Programmer], [HLADAPTER_NULINK]]])
150153

151154
m4_define([HIDAPI_USB1_ADAPTERS],
@@ -878,7 +881,7 @@ AS_IF([test "x$use_internal_jimtcl" = "xyes"], [
878881
echo
879882
echo
880883
echo OpenOCD configuration summary
881-
echo --------------------------------------------------
884+
echo ---------------------------------------------------
882885
m4_foreach([adapter], [USB1_ADAPTERS,
883886
HIDAPI_ADAPTERS, HIDAPI_USB1_ADAPTERS, LIBFTDI_ADAPTERS,
884887
LIBFTDI_USB1_ADAPTERS,
@@ -889,7 +892,7 @@ m4_foreach([adapter], [USB1_ADAPTERS,
889892
DUMMY_ADAPTER,
890893
OPTIONAL_LIBRARIES,
891894
COVERAGE],
892-
[s=m4_format(["%-40s"], ADAPTER_DESC([adapter]))
895+
[s=m4_format(["%-41s"], ADAPTER_DESC([adapter]))
893896
AS_CASE([$ADAPTER_VAR([adapter])],
894897
[auto], [
895898
echo "$s"yes '(auto)'

0 commit comments

Comments
 (0)