summaryrefslogtreecommitdiff
path: root/package/openocd/openocd.mk
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-09-20 13:19:52 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-21 22:59:15 +0200
commit6c213d64b3e7babc3685af89921c645992b14aa0 (patch)
tree3bb73ba781b10af8b72d0d7e25fa3a1f68f09c19 /package/openocd/openocd.mk
parent4d33cb702145f0cb9e1bad3e30cb740c21fe56b7 (diff)
package: add openocd support
with only the following Adapters - FTDI FT2xxx/FT4xxx - J-Link (Segger and Atmel SAM-ICE) - Versaloon-Link JTAG Adapter [Peter: Config.in tweaks] Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/openocd/openocd.mk')
-rw-r--r--package/openocd/openocd.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
new file mode 100644
index 000000000..74585d363
--- /dev/null
+++ b/package/openocd/openocd.mk
@@ -0,0 +1,32 @@
+#############################################################
+#
+# openocd
+#
+#############################################################
+OPENOCD_VERSION:=0.5.0
+OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2
+OPENOCD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/openocd/openocd/$(OPENOCD_VERSION)
+
+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
+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
+
+$(eval $(call AUTOTARGETS,package,openocd))