@@ -164,6 +164,9 @@ m4_define([LIBFTDI_USB1_ADAPTERS],
164
164
m4_define ( [ LIBGPIOD_ADAPTERS] ,
165
165
[ [ [ linuxgpiod] , [ Linux GPIO bitbang through libgpiod] , [ LINUXGPIOD] ] ] )
166
166
167
+ m4_define ( [ REMOTE_BITBANG_ADAPTER] ,
168
+ [ [ [ remote_bitbang] , [ Remote Bitbang driver] , [ REMOTE_BITBANG] ] ] )
169
+
167
170
m4_define ( [ LIBJAYLINK_ADAPTERS] ,
168
171
[ [ [ jlink] , [ SEGGER J-Link Programmer] , [ JLINK] ] ] )
169
172
@@ -310,6 +313,7 @@ AC_ARG_ADAPTERS([
310
313
LIBFTDI_ADAPTERS,
311
314
LIBFTDI_USB1_ADAPTERS,
312
315
LIBGPIOD_ADAPTERS,
316
+ REMOTE_BITBANG_ADAPTER,
313
317
LINUXSPIDEV_ADAPTER,
314
318
SERIAL_PORT_ADAPTERS,
315
319
DUMMY_ADAPTER,
@@ -413,10 +417,6 @@ AC_ARG_ENABLE([internal-libjaylink],
413
417
[ Enable building internal libjaylink] ) ,
414
418
[ use_internal_libjaylink=$enableval] , [ use_internal_libjaylink=no] )
415
419
416
- AC_ARG_ENABLE ( [ remote-bitbang] ,
417
- AS_HELP_STRING ( [ --enable-remote-bitbang] , [ Enable building support for the Remote Bitbang driver] ) ,
418
- [ build_remote_bitbang=$enableval] , [ build_remote_bitbang=no] )
419
-
420
420
AS_CASE ( [ "${host_cpu}"] ,
421
421
[ i?86|x86*] , [ ] ,
422
422
[
@@ -611,13 +611,6 @@ AS_IF([test "x$use_internal_jimtcl" = "xyes"], [
611
611
] )
612
612
] )
613
613
614
- AS_IF ( [ test "x$build_remote_bitbang" = "xyes"] , [
615
- build_bitbang=yes
616
- AC_DEFINE ( [ BUILD_REMOTE_BITBANG] , [ 1] , [ 1 if you want the Remote Bitbang driver.] )
617
- ] , [
618
- AC_DEFINE ( [ BUILD_REMOTE_BITBANG] , [ 0] , [ 0 if you don't want the Remote Bitbang driver.] )
619
- ] )
620
-
621
614
AS_IF ( [ test "x$build_sysfsgpio" = "xyes"] , [
622
615
build_bitbang=yes
623
616
AC_DEFINE ( [ BUILD_SYSFSGPIO] , [ 1] , [ 1 if you want the SysfsGPIO driver.] )
@@ -716,6 +709,7 @@ PROCESS_ADAPTERS([HIDAPI_USB1_ADAPTERS], ["x$use_hidapi" = "xyes" -a "x$use_libu
716
709
PROCESS_ADAPTERS([ LIBFTDI_ADAPTERS] , [ "x$use_libftdi" = "xyes"] , [ libftdi] )
717
710
PROCESS_ADAPTERS([ LIBFTDI_USB1_ADAPTERS] , [ "x$use_libftdi" = "xyes" -a "x$use_libusb1" = "xyes"] , [ libftdi and libusb-1.x] )
718
711
PROCESS_ADAPTERS([ LIBGPIOD_ADAPTERS] , [ "x$use_libgpiod" = "xyes"] , [ Linux libgpiod] )
712
+ PROCESS_ADAPTERS([ REMOTE_BITBANG_ADAPTER] , [ true] , [ unused] )
719
713
PROCESS_ADAPTERS([ LIBJAYLINK_ADAPTERS] , [ "x$use_internal_libjaylink" = "xyes" -o "x$use_libjaylink" = "xyes"] , [ libjaylink-0.2] )
720
714
PROCESS_ADAPTERS([ PCIE_ADAPTERS] , [ "x$is_linux" = "xyes"] , [ Linux build] )
721
715
PROCESS_ADAPTERS([ SERIAL_PORT_ADAPTERS] , [ "x$can_build_buspirate" = "xyes"] ,
@@ -730,6 +724,10 @@ AS_IF([test "x$enable_linuxgpiod" != "xno"], [
730
724
build_bitbang=yes
731
725
] )
732
726
727
+ AS_IF ( [ test "x$enable_remote_bitbang" != "xno"] , [
728
+ build_bitbang=yes
729
+ ] )
730
+
733
731
AS_IF ( [ test "x$enable_stlink" != "xno" -o "x$enable_ti_icdi" != "xno" -o "x$enable_nulink" != "xno"] , [
734
732
AC_DEFINE ( [ BUILD_HLADAPTER] , [ 1] , [ 1 if you want the High Level JTAG driver.] )
735
733
AM_CONDITIONAL([ HLADAPTER] , [ true] )
@@ -774,7 +772,6 @@ AM_CONDITIONAL([BITBANG], [test "x$build_bitbang" = "xyes"])
774
772
AM_CONDITIONAL([ USB_BLASTER_DRIVER] , [ test "x$enable_usb_blaster" != "xno" -o "x$enable_usb_blaster_2" != "xno"] )
775
773
AM_CONDITIONAL([ AMTJTAGACCEL] , [ test "x$build_amtjtagaccel" = "xyes"] )
776
774
AM_CONDITIONAL([ GW16012] , [ test "x$build_gw16012" = "xyes"] )
777
- AM_CONDITIONAL([ REMOTE_BITBANG] , [ test "x$build_remote_bitbang" = "xyes"] )
778
775
AM_CONDITIONAL([ SYSFSGPIO] , [ test "x$build_sysfsgpio" = "xyes"] )
779
776
AM_CONDITIONAL([ USE_LIBUSB1] , [ test "x$use_libusb1" = "xyes"] )
780
777
AM_CONDITIONAL([ IS_CYGWIN] , [ test "x$is_cygwin" = "xyes"] )
@@ -873,6 +870,7 @@ m4_foreach([adapter], [USB1_ADAPTERS,
873
870
HIDAPI_ADAPTERS, HIDAPI_USB1_ADAPTERS, LIBFTDI_ADAPTERS,
874
871
LIBFTDI_USB1_ADAPTERS,
875
872
LIBGPIOD_ADAPTERS,
873
+ REMOTE_BITBANG_ADAPTER,
876
874
LIBJAYLINK_ADAPTERS, PCIE_ADAPTERS, SERIAL_PORT_ADAPTERS,
877
875
LINUXSPIDEV_ADAPTER,
878
876
VDEBUG_ADAPTER,
0 commit comments