Line 14... |
Line 14... |
|
|
# Set this to 'true' to support cables which require libFTDI
|
# Set this to 'true' to support cables which require libFTDI
|
# SUPPORT_USB_CABLES must also be set to 'true' to support FTDI-based cables.
|
# SUPPORT_USB_CABLES must also be set to 'true' to support FTDI-based cables.
|
SUPPORT_FTDI_CABLES=true
|
SUPPORT_FTDI_CABLES=true
|
|
|
|
# Some users have reported failures with the standard libusb-based USBBlaster
|
|
# driver, but success using a libftdi-based driver. Set this 'true' to use
|
|
# this libftdi-based driver. Do not use except as a last resort - this driver
|
|
# does not use the USB-Blaster's high speed transfer mode, making it very slow.
|
|
# SUPPORT_FTDI_CABLES must also be set 'true' to use this driver.
|
|
USE_ALT_FTDI_USBBLASTER_DRIVER=true
|
|
|
|
# Normal error-checking on every word of a burst write can cause a significant
|
|
# slowdown, especially when using the USB-Blaster cable. Setting this option
|
|
# true will eliminate this slowdown, at the cost of per-word error checking.
|
|
USE_HISPEED=true
|
|
|
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
# Most people shouldn't have to change anything below this line
|
# Most people shouldn't have to change anything below this line
|
|
|
ifeq ($(BUILD_ENVIRONMENT),linux)
|
ifeq ($(BUILD_ENVIRONMENT),linux)
|
Line 42... |
Line 53... |
|
|
ifeq ($(SUPPORT_LEGACY),true)
|
ifeq ($(SUPPORT_LEGACY),true)
|
CFLAGS += -D__LEGACY__
|
CFLAGS += -D__LEGACY__
|
endif
|
endif
|
|
|
|
ifeq ($(USE_HISPEED),true)
|
|
CFLAGS += -DADBG_OPT_HISPEED
|
|
endif
|
|
|
|
|
PROGRAMS = adv_jtag_bridge
|
PROGRAMS = adv_jtag_bridge
|
|
|
HEADERS = adv_jtag_bridge.h chain_commands.h opencores_tap.h \
|
HEADERS = adv_jtag_bridge.h chain_commands.h opencores_tap.h \
|
altera_virtual_jtag.h rsp-server.h bsdl.h or32_selftest.c cable_common.h \
|
altera_virtual_jtag.h rsp-server.h bsdl.h or32_selftest.c cable_common.h \
|
Line 62... |
Line 77... |
bsdl_parse.o errcodes.o adv_dbg_commands.o dbg_api.o legacy_dbg_commands.o
|
bsdl_parse.o errcodes.o adv_dbg_commands.o dbg_api.o legacy_dbg_commands.o
|
|
|
|
|
ifeq ($(SUPPORT_USB_CABLES),true)
|
ifeq ($(SUPPORT_USB_CABLES),true)
|
CFLAGS += -D__SUPPORT_USB_CABLES__
|
CFLAGS += -D__SUPPORT_USB_CABLES__
|
HEADERS += cable_usbblaster.h cable_xpc_dlc9.h
|
HEADERS += cable_xpc_dlc9.h
|
SOURCES += cable_usbblaster.c cable_xpc_dlc9.c
|
SOURCES += cable_xpc_dlc9.c
|
OBJECTS += cable_usbblaster.o cable_xpc_dlc9.o
|
OBJECTS += cable_xpc_dlc9.o
|
|
|
|
ifeq ($(USE_ALT_FTDI_USBBLASTER_DRIVER),false)
|
|
HEADERS += cable_usbblaster.h
|
|
SOURCES += cable_usbblaster.c
|
|
OBJECTS += cable_usbblaster.o
|
|
endif
|
|
|
ifeq ($(SUPPORT_FTDI_CABLES),true)
|
ifeq ($(SUPPORT_FTDI_CABLES),true)
|
CFLAGS += -D__SUPPORT_FTDI_CABLES__
|
CFLAGS += -D__SUPPORT_FTDI_CABLES__
|
LIBS += -lftdi
|
LIBS += -lftdi
|
HEADERS += cable_ft2232.h
|
HEADERS += cable_ft2232.h
|
SOURCES += cable_ft2232.c
|
SOURCES += cable_ft2232.c
|
OBJECTS += cable_ft2232.o
|
OBJECTS += cable_ft2232.o
|
|
|
|
ifeq ($(USE_ALT_FTDI_USBBLASTER_DRIVER),true)
|
|
HEADERS += cable_usbblaster.h
|
|
SOURCES += cable_usbblaster_ftdi.c
|
|
OBJECTS += cable_usbblaster_ftdi.o
|
|
endif
|
|
|
endif
|
endif
|
|
|
# libusb must follow libftdi in the list of libraries
|
# libusb must follow libftdi in the list of libraries
|
LIBS += -lusb
|
LIBS += -lusb
|
endif
|
endif
|