Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
aad8718
flash/nor/efr32: fixed lockbits and user data
doug-a-brunner Oct 25, 2021
5a8d32f
doc: use the new jimtcl syntax for 'expr'
borneoa Jan 12, 2022
1536e24
aarch64: dump a message when CTI is missing
borneoa Nov 14, 2021
492ac45
log: fix memory leak when log to file is enabled
borneoa Dec 24, 2021
e3bda57
target: use target_event_name()
borneoa Dec 23, 2021
666ff82
jtag: Add an option to ignore the bypass bit
grassead Jan 6, 2022
6f3daf3
Fix small memory leak. (#672)
timsifive Jan 27, 2022
b6fabdd
Merge branch 'master' into from_upstream
timsifive Jan 28, 2022
efb0b11
flash/nor/atsame5: add LAN9255 devices
hefloryd Jan 21, 2022
5e0cc43
tcl/board: Add EVB-LAN9255 config
hefloryd Jan 21, 2022
93f2276
aarch64: support for aarch32 ARM_MODE_UND
Jan 12, 2022
6541233
Combine register lists of smp targets.
timsifive Jul 9, 2021
dbbac5f
semihosting: use open mode flags from GDB, not from sys/stat.h
pavel-kirienko Jan 9, 2022
52ca5d1
Ask the RTOS which target to set swbp on. (#673)
timsifive Jan 31, 2022
7d91f63
Merge pull request #674 from riscv/from_upstream
timsifive Feb 4, 2022
5ab74bd
semihosting: User defined operation, Tcl command exec on host
zedudi Nov 24, 2021
f6ffede
fix missing thread ID in stop reply when smp-configured hart (but not…
GregSavin Feb 7, 2022
9fe791b
riscv: fix remove_trigger return code for unavailable hw bp slot
erhankur Feb 9, 2022
c3a864c
.gitmodules: switch away from repo.or.cz
timsifive Feb 10, 2022
bdce731
Merge pull request #677 from riscv/gitmodules
timsifive Feb 11, 2022
feb83b7
fix progbuf cache: invalidate it when needed
JanMatCodasip Feb 11, 2022
8274cc5
fix progbuf cache: another two cases for invalidation
JanMatCodasip Feb 14, 2022
16cc853
target/smp: use a struct list_head to hold the smp targets
borneoa Dec 16, 2021
a11fe47
helper/list: add list_for_each_entry_direction()
borneoa Dec 16, 2021
49c40a7
target/riscv: revive 'riscv resume_order'
timsifive Dec 16, 2021
2a2636f
doxygen: fix some function prototype description
borneoa Jan 22, 2022
f998a2a
Cadence virtual debug interface (vdebug) integration
jacekmw8 Apr 6, 2021
7307fd0
gdb_server: Include thread name as XML attribute
benmcmorran Jan 27, 2022
2c0a65b
Fix small memory leak.
timsifive Jan 27, 2022
37d506a
server: remove remaining crust from dropped eCos code
borneoa Feb 2, 2022
3473953
Merge pull request #676 from erhankur/fix/riscv_remove_trigger_return…
timsifive Feb 14, 2022
2548835
rtos: threadx: Add hla_target support for ThreadX
benmcmorran Jan 27, 2022
435a652
Merge pull request #678 from riscv/invalidate-progbuf-cache
timsifive Feb 15, 2022
94e7535
.gitmodules: switch away from repo.or.cz
borneoa Feb 2, 2022
64f3f88
riscv: call debug_execution related events (#679)
erhankur Feb 21, 2022
2991232
flash/nor/stm32f2x: Fix erase of bank 2 sectors
ampleyfly Jan 17, 2022
10b5ac9
target/cortex_m: fix target_to_cm() helper
tom-van Nov 24, 2021
e4ba76a
target/armv7m,cortex_m: introduce checked arch_info cast routines
tom-van Nov 24, 2021
b53f5c2
target/cortex_m: add Cortex-M part number getter
tom-van Nov 25, 2021
13cd75b
flash/nor/stm32xx: fix segfault accessing Cortex-M part number
tom-van Nov 25, 2021
d673521
cpld: altera-epm240: Add additional IDCODEs
sean-anderson-seco Feb 11, 2022
b61eae1
cpld: altera-epm240: Increase adapter speed
sean-anderson-seco Feb 11, 2022
3fcfe4f
target: Add support for ls1088a
sean-anderson-seco Feb 11, 2022
d127866
target: ls1088a: Add service processor
sean-anderson-seco Feb 14, 2022
e84be70
board: Add NXP LS1088ARDB
sean-anderson-seco Feb 11, 2022
bc50b8f
gdb_server: fix double free
borneoa Feb 19, 2022
103b1d6
gdb_server: check target examined while combining reg list
borneoa Feb 19, 2022
8b740af
flash/stm32l4x: fix maybe-uninitialized compiler error
tarek-bochkati Feb 28, 2022
87c0cda
riscv: implement maskisr steponly command (#681)
erhankur Mar 1, 2022
9e097d0
From upstream (#684)
timsifive Mar 3, 2022
da73280
target/tcl: Add set_reg function
zapb-0 Jun 4, 2021
e8e62c5
target/tcl: Add get_reg function
zapb-0 Jun 4, 2021
29e2a74
target/arm_tpiu: Make error message easier to understand
zapb-0 Jun 22, 2021
4a4ca07
target/arm_tpiu: Fix 'tpiu create' parameter check
zapb-0 Jun 22, 2021
2586fec
target/arm_tpiu: Fix usage of 'tpiu create'
zapb-0 Feb 26, 2022
57c1e49
flash/stm32f1x,f2x: fix endianess in slow fallback flash write
tom-van Nov 16, 2021
f583f33
tcl/stm32l5x|u5x: refactor common tcl code
tarek-bochkati Sep 22, 2021
4906176
cortex_m: use LOG_TARGET_XXX
tarek-bochkati Feb 25, 2022
2b17a12
tcl/target/ti_k3: Remove args from m3 and m4_up
nmenon Oct 4, 2021
c280c98
tcl/target/ti_k3: Add a gdb-attach event hook for m3 and m4
nmenon Oct 2, 2021
77b02b8
tcl/target/ti_k3: Rename m3 target as sysctrl
nmenon Oct 2, 2021
4ddca7d
tcl/target/ti_k3: Rename m4 target as general purpose mcu
nmenon Oct 2, 2021
4b12c9e
tcl/target/ti_k3: Rename R5 targets to be more descriptive
nmenon Oct 4, 2021
3ba2b51
tcl/target/ti_k3: Add a gdb-attach event hook for r5 and simplify sta…
nmenon Oct 4, 2021
4ea21b9
tcl/target/ti_k3: Add a gdb-attach event hook for armv8 and simplify …
nmenon Mar 1, 2022
9f1b4bb
tcl/target/ti_k3: Add J721S2 SoC
nmenon Oct 14, 2021
de4f521
tcl/board: Add J721s2 EVM basic support
nmenon Oct 14, 2021
d323fa1
tcl/target/ti_k3: Add AM625 SoC
nmenon Jan 3, 2022
5ffc397
tcl/board: Add AM625 EVM basic support
nmenon Jan 3, 2022
9a6417e
tcl: don't use 'set' to retrieve the value of a variable
borneoa Mar 1, 2022
6883567
jtag_vpi: Minor cleanup in jtag_vpi driver
JanMatCodasip Feb 4, 2022
6673f90
flash/stm32h7x: fix FLASH_WPSN_PRG mask used for protection
tarek-bochkati Feb 24, 2022
b6e4d1a
flash/nor/sim3x: Fix typo
zapb-0 Mar 3, 2022
1c22c5a
flash/nor/efm32: Use Cortex-M 'core_info' field
zapb-0 Mar 3, 2022
5b70c1f
target: Add LS1046A
sean-anderson-seco Feb 21, 2022
5b9da0e
board: Add LS1046ARDB
sean-anderson-seco Feb 21, 2022
c5a23e9
jimtcl: add configure flag for build maintainer mode
borneoa Mar 5, 2022
38183dc
target/tcl: Add 'read_memory' and 'write_memory'
zapb-0 Jun 7, 2021
e370e06
target: Deprecate 'array2mem' and 'mem2array''
zapb-0 Jun 7, 2021
be0d68e
Remove all occurrences of 'mem2array' and 'array2mem'
zapb-0 Feb 25, 2022
f732956
Fix & improvements in Linux Build workflow (#686)
JanMatCodasip Mar 17, 2022
15a72fa
server: fix: remove kept_alive() from server loop
borneoa Jan 30, 2022
36e29f4
log: drop global current_time
borneoa Jan 31, 2022
99c7780
server: change prototype of add_service()
borneoa Jan 30, 2022
5c26fd7
gdb_server: simplify logic to enable/disable gdb_log_callback()
borneoa Jan 31, 2022
4e5dbec
keep-alive: drop link with log framework
borneoa Jan 31, 2022
b9526f1
semihosting: permit redirection of semihosting I/O to TCP
tarek-bochkati Apr 6, 2020
414c469
stlink: enable queuing with stlink-server API v3
tarek-bochkati Feb 2, 2022
9cdbe61
tcl/stm32u5x: fix clock config used at 'reset init'
tarek-bochkati Sep 16, 2021
ab43721
flash/stm32l4x: fix auto-probe when RDP is promoted from 0 to 0.5
tarek-bochkati Feb 28, 2022
fb43f1f
target: Rework 'set' variable of break-/watchpoints
zapb-0 Jun 13, 2021
92c4e63
breakpoints: fix build on -fno-inline
borneoa Mar 19, 2022
0a70e59
Fix: Set proper debug_reason in deassert_reset() (#687)
JanMatCodasip Mar 23, 2022
2cafa8b
semihosting: fix mode flags for local host open()
borneoa Mar 4, 2022
1b716b9
tcl/tools: Add function to measure the speed of ARM Cortex-M devices
zapb-0 Nov 28, 2019
00d4699
arm_tpiu_swo: fix autodetection of SWO pin frequency
borneoa Jun 9, 2021
3fa695b
openocd: include config.h in every file .c
borneoa Feb 24, 2022
6c9dd1c
helper/bits: add BIT_ULL and GENMASK macros
borneoa Feb 24, 2022
017d3dd
gdb_server: Improve logging of GDB-remote packets
JanMatCodasip Mar 17, 2022
f0d8c3b
libusb_helper.h: Increase USB timeout
gaborcsapo Mar 18, 2022
c3b9ae6
drivers/cmsis-dap: Remove stray whitespace
zapb-0 Mar 25, 2022
7c6d379
tcl/board: Add NXP FRDM-K64F
zapb-0 Mar 25, 2022
78b56e2
riscv: Increase batch allocation size to improve transfer speed. (#689)
Dolu1990 Apr 11, 2022
00d7c79
Merge branch 'master' into from_upstream
timsifive Apr 11, 2022
b7fdcd5
Fix build.
timsifive Apr 11, 2022
31812cd
Merge pull request #691 from riscv/from_upstream
timsifive Apr 12, 2022
dd532e8
flash/nor/stm32f1x: allow write fallback for flash options
tom-van Nov 16, 2021
10f9339
flash/nor/stm32f1x: remove write alignment code
tom-van Nov 16, 2021
e3f4ea0
flash/nor/stm32f1x: tidy up async algo supporting code
tom-van Nov 16, 2021
b801452
flash/nor/stm32f1x: unify flash error reporting
tom-van Nov 16, 2021
e83eeb4
flash/nor/stm32f1x: lock flash in case of error
tom-van Nov 16, 2021
9d737af
riscv: Add a option to specify the JTAG TAP tunnel IR (#690)
Dolu1990 Apr 20, 2022
2e5df83
nds32: deprecate it, together with aice adapter driver
borneoa Mar 24, 2022
a503584
tcl/target/stm32f4x: fix name
reitermarkus Apr 16, 2022
d47aaf6
tcl/target/stm32l4x: set default WORKAREASIZE to smallest device
reitermarkus Apr 16, 2022
7ca770c
tcl/target/stm32l4x: switch to new TPIU/SWO support
reitermarkus Apr 16, 2022
d8c81d7
tcl/target/stm32l4x: align format/order/comments with stm32f4x
reitermarkus Apr 17, 2022
5ebb1bd
server/gdb: fix return of gdb remote monitor command
borneoa Mar 30, 2022
a213397
target/image: fix - p_flags field in ELF64 segment headers is 64 bits…
JanMatCodasip Apr 12, 2022
a26ee53
rtos: zephyr: do not use deprecated symbols name
Feb 4, 2022
f2b4897
flash/stm32f1x: add support for RISC-V GigaDevice GD32VF103
tom-van Nov 16, 2021
1c07229
tcl/target/gd32vf103: add flash bank
tom-van Nov 17, 2021
9de084e
flash/nor/stm32f1x: add can_load_options flag for GD32F1x0, F3x0 and …
tom-van Nov 30, 2021
bd26616
Fix typo in comment.
timsifive Apr 27, 2022
e8b0545
Make watchpoint.unique_id a uint32_t
timsifive Apr 27, 2022
dc320d2
Small code cleanup.
timsifive Apr 27, 2022
a6f3212
Create riscv_hit_trigger_hit_bit() function.
timsifive Apr 27, 2022
edcfcab
Add trigger_hit field to riscv_info
timsifive Apr 27, 2022
68e41dc
Remove empty line.
timsifive Apr 27, 2022
d67a5bf
During polling, check which trigger has `hit` set.
timsifive Apr 27, 2022
7319922
Report some triggers as hardware breakpoints.
timsifive Apr 27, 2022
1979ad5
If we know which trigger hit, don't disassemble.
timsifive Apr 27, 2022
20adf85
linuxgpiod: add SWDIO buffer
stevemarple Apr 12, 2022
9eddc21
bcm2835gpio: Make buffer an output before the GPIO connected to it
stevemarple Apr 19, 2022
8789513
target/arm_cti: Fix error handling in 'cti create'
zapb-0 Apr 23, 2022
12d1ad0
target/disassembler: update capstone include path to <capstone.h>
cnfatal Apr 25, 2022
6633568
drivers/cmsis-dap: Correct the DAP protocol parameter parsing error
Apr 29, 2022
b6dddfa
Merge pull request #694 from riscv/trigger_hit
timsifive May 2, 2022
9460f43
Merge branch 'master' into from_upstream
timsifive May 3, 2022
8e1064f
Remove gd32vf103 flash driver.
timsifive May 3, 2022
3cac5d2
server/gdb: fix gdb remote monitor cmd on multi-target
borneoa May 4, 2022
a2c569f
Try to fix capstone build for win32.
timsifive May 4, 2022
a037b20
Merge pull request #696 from riscv/from_upstream
timsifive May 12, 2022
a408bdc
fix: semihosting_fileio display the unsupported info (#699)
wzgpeter May 16, 2022
6047fed
Change set_haltgroup() to more general set_group() (#697)
timsifive May 16, 2022
0fada02
Correctly set target->smp. (#701)
timsifive May 18, 2022
5c34da1
Use new debug_defines.h (#703)
timsifive May 25, 2022
9906763
flash: redirect gd32vf103 driver to stm32f1x (#704)
fanghuaqi Jun 1, 2022
40458f6
tcl: add Espressif riscv targets (ESP32-C2 & ESP32-C3) (#706)
erhankur Jun 6, 2022
a2da822
Document `ftdi oscan1_mode` (#705)
timsifive Jun 8, 2022
d85a4e8
Remove unused code. (#707)
timsifive Jun 15, 2022
6d359af
Fix: Prevent segfault in riscv_invalidate_register_cache for non-exam…
JanMatCodasip Jun 16, 2022
8488e4e
Convert filter_openocd_log.py to use python3. (#709)
timsifive Jun 23, 2022
aaf0620
Update with latest encoding from riscv-opcodes (#710)
timsifive Jul 8, 2022
969f112
Update debug_defines.h. (#711)
timsifive Jul 18, 2022
793def2
Properly set dmcs2.grouptype. (#712)
timsifive Jul 25, 2022
5217759
Fix overflow issue in write_memory_progbuf (#714)
en-sc Aug 1, 2022
fb52355
Update encoding.h again. (#713)
timsifive Aug 18, 2022
7a16947
encoding.h license changed to BSD-3-Clause (#717)
timsifive Aug 22, 2022
7c0ca4d
Add copyright line to encoding.h. (#718)
timsifive Aug 25, 2022
04020c1
Remove rtos.gdb_v_packet. (#722)
timsifive Sep 2, 2022
911d68e
Don't read dmcontrol to set hartsel (#723)
timsifive Sep 9, 2022
8832d4b
Add error message when dmstatus read times out.
timsifive Sep 13, 2022
b3d6474
Merge pull request #726 from riscv/timeout_msg
timsifive Sep 14, 2022
639e68a
Make poll backoff time based.
timsifive Sep 15, 2022
4004db5
Make polling_interval unsigned.
timsifive Sep 16, 2022
89746e1
Fix comment indent.
timsifive Sep 19, 2022
fa1abc6
Add explanatory comment.
timsifive Sep 19, 2022
b773837
Make large if() more readable.
timsifive Sep 19, 2022
671d99b
Support for custom TMSC buffer
mrv96 Sep 19, 2022
c96a24a
Add Digilent JTAG-HS2 cJTAG configuration
mrv96 Sep 19, 2022
3c5be53
Don't use const on temporary variable.
timsifive Sep 22, 2022
4b0379f
Improve oSCAN1 documentation
mrv96 Sep 19, 2022
8bb25e0
Merge pull request #729 from mrv96/patch-1
timsifive Sep 23, 2022
1371412
Propagate error code in register_read/write_direct
en-sc Sep 21, 2022
fb7c8b3
Remove incorrect debug_log in wait_for_idle
en-sc Jul 29, 2022
d427e13
Merge pull request #732 from en-sc/en-sc/error-code-regwrite-direct
timsifive Sep 27, 2022
e53fd14
Merge pull request #733 from en-sc/en-sc/remove-erroneous-debuglog
timsifive Sep 27, 2022
23df83e
Merge pull request #727 from riscv/poll_backoff
timsifive Sep 27, 2022
550a66e
Use LOG_TARGET_FOO() functions in more places. (#731)
timsifive Sep 29, 2022
84365e6
Remove riscv_info_t.current_hartid
timsifive Sep 23, 2022
6d4ba7c
Merge pull request #738 from riscv/current_hartid
timsifive Oct 4, 2022
b70ccf2
OScan1 code cleanup
mrv96 Sep 30, 2022
f61098c
Rename ftdi_oscan1 to ftdi_cjtag
mrv96 Sep 30, 2022
bd5649d
Support cJTAG JScan3 mode
mrv96 Sep 30, 2022
088a359
Use TMSC_EN signal for cJTAG escape seq if defined
mrv96 Sep 30, 2022
0f12a01
riscv: Minor formatting cleanup.
timsifive Oct 4, 2022
342ca4a
Fix Digilent JTAG-HS2 cJTAG configuration script
mrv96 Oct 5, 2022
b411a95
Merge pull request #742 from mrv96/cjtag
timsifive Oct 6, 2022
01ae0f2
Fix incorrect braces caused by #732
dmitryryzhov Oct 7, 2022
29983fd
(Re)Init cJTAG only after trst (not after srst)
mrv96 Oct 7, 2022
0c6121d
(Re)Init cJTAG before move JTAG to reset state
mrv96 Oct 7, 2022
f6163aa
Merge pull request #744 from mrv96/cjtag
timsifive Oct 10, 2022
51aa805
Merge pull request #745 from dmitryryzhov/fix-braces
timsifive Oct 10, 2022
4270857
target/riscv: Clean up halt_go for multiple harts.
timsifive Oct 6, 2022
bed28d5
filter_openocd: Prefer high repetitions.
timsifive Oct 5, 2022
a50b280
Properly track selecting multiple harts at once. (#743)
timsifive Oct 12, 2022
fe5c7d7
[riscv] step operation handler should respect handle_breakpoints para…
aap-sc Oct 14, 2022
9eb07f2
target/riscv: Correctly set target->state in deassert_reset (#750)
timsifive Oct 21, 2022
fc03426
Apply changes from WCH release 1.80
treideme Aug 24, 2023
208f870
Add a more standard interface config and target config for wch parts and
treideme Aug 24, 2023
c60ddd5
Delete .travis.yml
treideme Aug 24, 2023
820f357
Wlink config fixes
treideme Aug 24, 2023
84576c8
Restore semihosting support for RISCV on WCH chips
treideme Aug 25, 2023
569a231
Temporarily disabling signoff
treideme Aug 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/checkpatch.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/linux-build.yml

This file was deleted.

82 changes: 0 additions & 82 deletions .github/workflows/snapshot.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[submodule "tools/git2cl"]
path = tools/git2cl
url = https://git.savannah.nongnu.org/git/git2cl.git
[submodule "jimtcl"]
path = jimtcl
url = https://github.com/msteveb/jimtcl.git
[submodule "tools/git2cl"]
path = tools/git2cl
url = https://repo.or.cz/git2cl.git
[submodule "src/jtag/drivers/libjaylink"]
path = src/jtag/drivers/libjaylink
url = https://repo.or.cz/libjaylink.git
url = https://gitlab.zapb.de/libjaylink/libjaylink.git
76 changes: 0 additions & 76 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion config_subdir.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ AC_DEFUN([AX_CONFIG_SUBDIR_OPTION],
AC_CONFIG_SUBDIRS([$1])

m4_ifblank([$2], [rm -f $srcdir/$1/configure.gnu],
[echo -e '#!/bin/sh\nexec "`dirname "'\$'0"`/configure" $2 "'\$'@"' > "$srcdir/$1/configure.gnu"
[echo -e '#!/bin/sh\nexec "`dirname "'\$'0"`/configure" '"$2"' "'\$'@"' > "$srcdir/$1/configure.gnu"
])
])
60 changes: 54 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ m4_define([ADAPTER_OPT], [m4_translit(ADAPTER_ARG($1), [_], [-])])

m4_define([USB1_ADAPTERS],
[[[ftdi], [MPSSE mode of FTDI based devices], [FTDI]],
[[ftdi_oscan1], [cJTAG OSCAN1 tunneled thru MPSSE], [FTDI_OSCAN1]],
[[ftdi_cjtag], [cJTAG (OScan1, JScan3) tunneled thru MPSSE], [FTDI_CJTAG]],
[[stlink], [ST-Link Programmer], [HLADAPTER_STLINK]],
[[ti_icdi], [TI ICDI JTAG Programmer], [HLADAPTER_ICDI]],
[[ulink], [Keil ULINK JTAG Programmer], [ULINK]],
[[wlinke], [ WLINKE Programmer], [WLINKE]],
[[ch347], [ CH347 Programmer], [CH347]],
[[usb_blaster_2], [Altera USB-Blaster II Compatible], [USB_BLASTER_2]],
[[ft232r], [Bitbang mode of FT232R based devices], [FT232R]],
[[vsllink], [Versaloon-Link JTAG Programmer], [VSLLINK]],
Expand All @@ -123,8 +125,10 @@ m4_define([USB1_ADAPTERS],
[[opendous], [eStick/opendous JTAG Programmer], [OPENDOUS]],
[[armjtagew], [Olimex ARM-JTAG-EW Programmer], [ARMJTAGEW]],
[[rlink], [Raisonance RLink JTAG Programmer], [RLINK]],
[[usbprog], [USBProg JTAG Programmer], [USBPROG]],
[[aice], [Andes JTAG Programmer], [AICE]]])
[[usbprog], [USBProg JTAG Programmer], [USBPROG]]])

m4_define([DEPRECATED_USB1_ADAPTERS],
[[[aice], [Andes JTAG Programmer (deprecated)], [AICE]]])

m4_define([HIDAPI_ADAPTERS],
[[[cmsis_dap], [CMSIS-DAP Compliant Debugger], [CMSIS_DAP_HID]],
Expand Down Expand Up @@ -257,6 +261,8 @@ AC_ARG_ADAPTERS([
LIBJAYLINK_ADAPTERS
],[auto])

AC_ARG_ADAPTERS([DEPRECATED_USB1_ADAPTERS],[no])

AC_ARG_ENABLE([parport],
AS_HELP_STRING([--enable-parport], [Enable building the pc parallel port driver]),
[build_parport=$enableval], [build_parport=no])
Expand All @@ -275,6 +281,16 @@ AC_ARG_ENABLE([jtag_vpi],
AS_HELP_STRING([--enable-jtag_vpi], [Enable building support for JTAG VPI]),
[build_jtag_vpi=$enableval], [build_jtag_vpi=no])

AC_ARG_ENABLE([wlinke],
AS_HELP_STRING([--enable-wlinke], [Enable building support for WLINKE]),
[build_wlinke=$enableval], [build_wlinke=no])
AC_ARG_ENABLE([ch347],
AS_HELP_STRING([--enable-ch347], [Enable building support for CH347]),
[build_ch347=$enableval], [build_ch347=no])
AC_ARG_ENABLE([vdebug],
AS_HELP_STRING([--enable-vdebug], [Enable building support for Cadence Virtual Debug Interface]),
[build_vdebug=$enableval], [build_vdebug=no])

AC_ARG_ENABLE([jtag_dpi],
AS_HELP_STRING([--enable-jtag_dpi], [Enable building support for JTAG DPI]),
[build_jtag_dpi=$enableval], [build_jtag_dpi=no])
Expand Down Expand Up @@ -351,6 +367,10 @@ AC_ARG_ENABLE([internal-jimtcl],
AS_HELP_STRING([--disable-internal-jimtcl], [Disable building internal jimtcl]),
[use_internal_jimtcl=$enableval], [use_internal_jimtcl=yes])

AC_ARG_ENABLE([jimtcl-maintainer],
AS_HELP_STRING([--enable-jimtcl-maintainer], [Enable maintainer mode when building internal jimtcl]),
[use_internal_jimtcl_maintainer=$enableval], [use_internal_jimtcl_maintainer=no])

AC_ARG_ENABLE([internal-libjaylink],
AS_HELP_STRING([--disable-internal-libjaylink],
[Disable building internal libjaylink]),
Expand Down Expand Up @@ -514,6 +534,24 @@ AS_IF([test "x$build_jtag_vpi" = "xyes"], [
AC_DEFINE([BUILD_JTAG_VPI], [0], [0 if you don't want JTAG VPI.])
])

AS_IF([test "x$build_wlinke" = "xyes"], [
AC_DEFINE([BUILD_WLINKE], [1], [1 if you want WLINKE.])
], [
AC_DEFINE([BUILD_WLINKE], [0], [0 if you don't want WLINKE.])
])

AS_IF([test "x$build_ch347" = "xyes"], [
AC_DEFINE([BUILD_CH347], [1], [1 if you want CH347.])
], [
AC_DEFINE([BUILD_CH347], [0], [0 if you don't want CH347.])
])

AS_IF([test "x$build_vdebug" = "xyes"], [
AC_DEFINE([BUILD_VDEBUG], [1], [1 if you want Cadence vdebug interface.])
], [
AC_DEFINE([BUILD_VDEBUG], [0], [0 if you don't want Cadence vdebug interface.])
])

AS_IF([test "x$build_jtag_dpi" = "xyes"], [
AC_DEFINE([BUILD_JTAG_DPI], [1], [1 if you want JTAG DPI.])
], [
Expand Down Expand Up @@ -541,7 +579,12 @@ AS_IF([test "x$enable_buspirate" != "xno"], [

AS_IF([test "x$use_internal_jimtcl" = "xyes"], [
AS_IF([test -f "$srcdir/jimtcl/configure.ac"], [
AX_CONFIG_SUBDIR_OPTION([jimtcl], [--disable-install-jim])
AS_IF([test "x$use_internal_jimtcl_maintainer" = "xyes"], [
jimtcl_config_options="--disable-install-jim --maintainer"
], [
jimtcl_config_options="--disable-install-jim"
])
AX_CONFIG_SUBDIR_OPTION([jimtcl], [$jimtcl_config_options])
], [
AC_MSG_ERROR([jimtcl not found, run git submodule init and git submodule update.])
])
Expand Down Expand Up @@ -642,6 +685,7 @@ m4_define([PROCESS_ADAPTERS], [
])

PROCESS_ADAPTERS([USB1_ADAPTERS], ["x$use_libusb1" = "xyes"], [libusb-1.x])
PROCESS_ADAPTERS([DEPRECATED_USB1_ADAPTERS], ["x$use_libusb1" = "xyes"], [libusb-1.x])
PROCESS_ADAPTERS([HIDAPI_ADAPTERS], ["x$use_hidapi" = "xyes"], [hidapi])
PROCESS_ADAPTERS([HIDAPI_USB1_ADAPTERS], ["x$use_hidapi" = "xyes" -a "x$use_libusb1" = "xyes"], [hidapi and libusb-1.x])
PROCESS_ADAPTERS([LIBFTDI_ADAPTERS], ["x$use_libftdi" = "xyes"], [libftdi])
Expand Down Expand Up @@ -689,8 +733,11 @@ AM_CONDITIONAL([AT91RM9200], [test "x$build_at91rm9200" = "xyes"])
AM_CONDITIONAL([BCM2835GPIO], [test "x$build_bcm2835gpio" = "xyes"])
AM_CONDITIONAL([IMX_GPIO], [test "x$build_imx_gpio" = "xyes"])
AM_CONDITIONAL([BITBANG], [test "x$build_bitbang" = "xyes"])
AM_CONDITIONAL([JTAG_VPI], [test "x$build_jtag_vpi" = "xyes" -o "x$build_jtag_vpi" = "xyes"])
AM_CONDITIONAL([JTAG_DPI], [test "x$build_jtag_dpi" = "xyes" -o "x$build_jtag_dpi" = "xyes"])
AM_CONDITIONAL([JTAG_VPI], [test "x$build_jtag_vpi" = "xyes"])
AM_CONDITIONAL([WLINKE], [test "x$build_wlinke" = "xyes" -o "x$build_wlinke" = "xyes"])
AM_CONDITIONAL([CH347], [test "x$build_ch347" = "xyes" -o "x$build_ch347" = "xyes"])
AM_CONDITIONAL([VDEBUG], [test "x$build_vdebug" = "xyes"])
AM_CONDITIONAL([JTAG_DPI], [test "x$build_jtag_dpi" = "xyes"])
AM_CONDITIONAL([USB_BLASTER_DRIVER], [test "x$enable_usb_blaster" != "xno" -o "x$enable_usb_blaster_2" != "xno"])
AM_CONDITIONAL([AMTJTAGACCEL], [test "x$build_amtjtagaccel" = "xyes"])
AM_CONDITIONAL([GW16012], [test "x$build_gw16012" = "xyes"])
Expand Down Expand Up @@ -779,6 +826,7 @@ echo
echo OpenOCD configuration summary
echo --------------------------------------------------
m4_foreach([adapter], [USB1_ADAPTERS,
DEPRECATED_USB1_ADAPTERS,
HIDAPI_ADAPTERS, HIDAPI_USB1_ADAPTERS, LIBFTDI_ADAPTERS,
LIBFTDI_USB1_ADAPTERS,
LIBGPIOD_ADAPTERS,
Expand Down
Loading