@@ -157,6 +157,9 @@ m4_define([PCIE_ADAPTERS],
157157m4_define ( [ SERIAL_PORT_ADAPTERS] ,
158158 [ [ [ buspirate] , [ Bus Pirate] , [ BUS_PIRATE] ] ] )
159159
160+ m4_define ( [ NETWORK_ADAPTERS] ,
161+ [ [ [ xvc] , [ Xilinx XVC TCP] , [ xvc] ] ] )
162+
160163# The word 'Adapter' in "Dummy Adapter" below must begin with a capital letter
161164# because there is an M4 macro called 'adapter'.
162165m4_define ( [ DUMMY_ADAPTER] ,
@@ -264,7 +267,8 @@ AC_ARG_ADAPTERS([
264267 LIBFTDI_USB1_ADAPTERS
265268 LIBGPIOD_ADAPTERS,
266269 SERIAL_PORT_ADAPTERS,
267- LIBJAYLINK_ADAPTERS
270+ LIBJAYLINK_ADAPTERS,
271+ NETWORK_ADAPTERS
268272 ] ,[ auto] )
269273
270274AC_ARG_ADAPTERS([ DUMMY_ADAPTER] ,[ no] )
@@ -388,6 +392,10 @@ AC_ARG_ENABLE([remote-bitbang],
388392 AS_HELP_STRING ( [ --enable-remote-bitbang] , [ Enable building support for the Remote Bitbang driver] ) ,
389393 [ build_remote_bitbang=$enableval] , [ build_remote_bitbang=no] )
390394
395+ AC_ARG_ENABLE ( [ xvc] ,
396+ AS_HELP_STRING ( [ --enable-xvc] , [ Enable building support for the Xilinx XVC TCP jtag driver] ) ,
397+ [ build_xvc=$enableval] , [ build_xvc=yes] )
398+
391399AS_CASE ( [ "${host_cpu}"] ,
392400 [ i?86|x86*] , [ ] ,
393401 [
@@ -603,6 +611,13 @@ AS_IF([test "x$build_remote_bitbang" = "xyes"], [
603611 AC_DEFINE ( [ BUILD_REMOTE_BITBANG] , [ 0] , [ 0 if you don't want the Remote Bitbang driver.] )
604612] )
605613
614+ AS_IF ( [ test "x$build_xvc" = "xyes"] , [
615+ build_bitbang=yes
616+ AC_DEFINE ( [ BUILD_XVC] , [ 1] , [ 1 if you want the Xilinx XVC TCP driver.] )
617+ ] , [
618+ AC_DEFINE ( [ BUILD_XVC] , [ 0] , [ 0 if you don't want the Xilinx XVC TCP driver.] )
619+ ] )
620+
606621AS_IF ( [ test "x$build_sysfsgpio" = "xyes"] , [
607622 build_bitbang=yes
608623 AC_DEFINE ( [ BUILD_SYSFSGPIO] , [ 1] , [ 1 if you want the SysfsGPIO driver.] )
@@ -779,6 +794,7 @@ AM_CONDITIONAL([USE_LIBJAYLINK], [test "x$use_libjaylink" = "xyes"])
779794AM_CONDITIONAL([ RSHIM] , [ test "x$build_rshim" = "xyes"] )
780795AM_CONDITIONAL([ DMEM] , [ test "x$build_dmem" = "xyes"] )
781796AM_CONDITIONAL([ HAVE_CAPSTONE] , [ test "x$enable_capstone" != "xno"] )
797+ AM_CONDITIONAL([ XVC] , [ test "x$build_xvc" = "xyes"] )
782798
783799AM_CONDITIONAL([ INTERNAL_JIMTCL] , [ test "x$use_internal_jimtcl" = "xyes"] )
784800AM_CONDITIONAL([ INTERNAL_LIBJAYLINK] , [ test "x$use_internal_libjaylink" = "xyes"] )
@@ -857,6 +873,7 @@ m4_foreach([adapter], [USB1_ADAPTERS,
857873 LIBFTDI_USB1_ADAPTERS,
858874 LIBGPIOD_ADAPTERS,
859875 LIBJAYLINK_ADAPTERS, PCIE_ADAPTERS, SERIAL_PORT_ADAPTERS,
876+ NETWORK_ADAPTERS,
860877 DUMMY_ADAPTER,
861878 OPTIONAL_LIBRARIES] ,
862879 [ s=m4_format ( [ "%-40s"] , ADAPTER_DESC ( [ adapter] ))
0 commit comments