2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-09-20 13:19:52 +02:00
|
|
|
#
|
|
|
|
# openocd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-20 10:45:47 +01:00
|
|
|
|
|
|
|
OPENOCD_VERSION = 0.5.0
|
2011-09-20 13:19:52 +02:00
|
|
|
OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2
|
2012-08-26 01:52:48 +02:00
|
|
|
OPENOCD_SITE = http://downloads.sourceforge.net/project/openocd/openocd/$(OPENOCD_VERSION)
|
2011-09-20 13:19:52 +02:00
|
|
|
|
|
|
|
OPENOCD_AUTORECONF = YES
|
|
|
|
OPENOCD_CONF_OPT = \
|
|
|
|
--oldincludedir=$(STAGING_DIR)/usr/include \
|
|
|
|
--includedir=$(STAGING_DIR)/usr/include \
|
|
|
|
--disable-doxygen-html \
|
|
|
|
--enable-dummy
|
|
|
|
|
|
|
|
OPENOCD_DEPENDENCIES = libusb-compat
|
|
|
|
|
|
|
|
# Adapters
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOCD_FT2XXX),y)
|
|
|
|
OPENOCD_CONF_OPT += --enable-ft2232_libftdi
|
2012-02-02 21:05:47 +01:00
|
|
|
OPENOCD_DEPENDENCIES += libftdi
|
2011-09-20 13:19:52 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOCD_JLINK),y)
|
|
|
|
OPENOCD_CONF_OPT += --enable-jlink
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOCD_VSLLINK),y)
|
|
|
|
OPENOCD_CONF_OPT += --enable-vsllink
|
|
|
|
endif
|
|
|
|
|
2012-01-28 18:42:54 +01:00
|
|
|
HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
|
|
|
|
|
|
|
|
HOST_OPENOCD_CONF_OPT = \
|
|
|
|
--disable-doxygen-html \
|
|
|
|
--enable-dummy \
|
|
|
|
--enable-ft2232_libftdi \
|
|
|
|
--enable-jlink \
|
|
|
|
--enable-vsllink
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|