From: drath Date: Tue, 31 Jul 2007 10:09:00 +0000 (+0000) Subject: - add missing configure.in change from last checkin X-Git-Tag: v0.1.0~1092 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=91d21d22ca26d4c103c0a60f1f937283597302bc;p=openocd - add missing configure.in change from last checkin - add usbprog example config file - update version string git-svn-id: svn://svn.berlios.de/openocd/trunk@187 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/configure.in b/configure.in index ce4e9d1b..20d3c02e 100644 --- a/configure.in +++ b/configure.in @@ -67,6 +67,10 @@ AC_ARG_ENABLE(usbprog, AS_HELP_STRING([--enable-usbprog], [Enable building support for the usbprog JTAG Programmer]), [build_usbprog=$enableval], [build_usbprog=no]) +AC_ARG_ENABLE(oocd_trace, + AS_HELP_STRING([--enable-oocd_trace], [Enable building support for the OpenOCD+trace ETM capture device]), + [build_oocd_trace=$enableval], [build_oocd_trace=no]) + AC_ARG_WITH(ftd2xx, [AS_HELP_STRING(--with-ftd2xx, [Where libftd2xx can be found ])], @@ -191,6 +195,12 @@ else AC_DEFINE(BUILD_USBPROG, 0, [0 if you don't want the usbprog JTAG driver.]) fi +if test $build_oocd_trace = yes; then + AC_DEFINE(BUILD_OOCD_TRACE, 1, [1 if you want the OpenOCD+trace ETM capture driver.]) +else + AC_DEFINE(BUILD_OOCD_TRACE, 0, [0 if you don't want the OpenOCD+trace ETM capture driver.]) +fi + AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(openocd, 0.1) @@ -205,6 +215,7 @@ AM_CONDITIONAL(AMTJTAGACCEL, test $build_amtjtagaccel = yes) AM_CONDITIONAL(GW16012, test $build_gw16012 = yes) AM_CONDITIONAL(PRESTO, test $build_presto = yes) AM_CONDITIONAL(USBPROG, test $build_usbprog = yes) +AM_CONDITIONAL(OOCD_TRACE, test $build_oocd_trace = yes) AM_CONDITIONAL(IS_CYGWIN, test $is_cygwin = yes) AM_CONDITIONAL(IS_MINGW, test $is_mingw = yes) AM_CONDITIONAL(IS_WIN32, test $is_win32 = yes) diff --git a/doc/configs/usbprog.cfg b/doc/configs/usbprog.cfg new file mode 100644 index 00000000..fa434dde --- /dev/null +++ b/doc/configs/usbprog.cfg @@ -0,0 +1,26 @@ +#daemon configuration +telnet_port 4444 +gdb_port 3333 + +#interface +interface usbprog +jtag_speed 2 + +#use combined on interfaces or targets that can't set TRST/SRST separately +reset_config trst_and_srst srst_pulls_trst + +#jtag scan chain +#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) +jtag_device 4 0x1 0xf 0xe + +#target configuration +daemon_startup reset +#target +#target arm7tdmi +target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4 +run_and_halt_time 0 30 +working_area 0 0x40000000 0x40000 nobackup + +#flash configuration +flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum +flash bank cfi 0x80000000 0x400000 2 2 0 diff --git a/src/openocd.c b/src/openocd.c index b20ffd23..1bdbb1ca 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -18,7 +18,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#define OPENOCD_VERSION "Open On-Chip Debugger (2007-07-26 11:30 CEST)" +#define OPENOCD_VERSION "Open On-Chip Debugger (2007-07-31 12:00 CEST) #ifdef HAVE_CONFIG_H #include "config.h"