openocd: add host variant
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 28 Jan 2012 17:42:54 +0000 (18:42 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 2 Feb 2012 20:02:26 +0000 (21:02 +0100)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in.host
package/openocd/Config.in.host [new file with mode: 0644]
package/openocd/openocd.mk

index b8f8aab028adfc0129208ebe460a91d115c12e04..6bc828b89ae0422a83b90f8823b6d0faabf26139 100644 (file)
@@ -1,5 +1,6 @@
 menu "Host utilities"
 
+source "package/openocd/Config.in.host"
 source "package/uboot-tools/Config.in.host"
 
 endmenu
diff --git a/package/openocd/Config.in.host b/package/openocd/Config.in.host
new file mode 100644 (file)
index 0000000..2380942
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_OPENOCD
+       bool "host openocd"
+       help
+         OpenOCD - Open On-Chip Debugger
+
+         http://openocd.berlios.de/web/
index 5f613673fae9fbf9d0cff3eb064b501d458341b5..d79b33b70e4100ea4762a7926c447e59865db38e 100644 (file)
@@ -29,4 +29,14 @@ ifeq ($(BR2_PACKAGE_OPENOCD_VSLLINK),y)
 OPENOCD_CONF_OPT += --enable-vsllink
 endif
 
+HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
+
+HOST_OPENOCD_CONF_OPT =        \
+       --disable-doxygen-html  \
+       --enable-dummy          \
+       --enable-ft2232_libftdi \
+       --enable-jlink          \
+       --enable-vsllink
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))