From: kusy Date: Thu, 29 May 2008 20:16:43 +0000 (+0000) Subject: adding support for OpenOCD - jtag for linux X-Git-Tag: release_tinyos_2_1_0_0~359 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=a5119c4abb8caabaaae9aa79b40dfa6c8ecb7c32 adding support for OpenOCD - jtag for linux --- diff --git a/support/make/pxa27x/openocd.extra b/support/make/pxa27x/openocd.extra new file mode 100644 index 00000000..cc55de11 --- /dev/null +++ b/support/make/pxa27x/openocd.extra @@ -0,0 +1,18 @@ +#-*-Makefile-*- vim:syntax=make + +# +# To install OpenOCD, see the following wiki page: +# http://docs.tinyos.net/index.php/OpenOCD_for_IMote2 +# + +PROGRAM = imote2-ocd-program.py + +PROGRAMMER ?= $(TOSROOT)/tools/platforms/intelmote2/openocd/imote2-ocd-program.py + +program: FORCE + @echo " installing $(PLATFORM) binary using $(PROGRAM)" + $(PROGRAMMER) $(INSTALL_BIN) + +program_input: bin + @: + diff --git a/support/make/pxa27x/pxa27x.rules b/support/make/pxa27x/pxa27x.rules index cc9ee38d..c09f3add 100644 --- a/support/make/pxa27x/pxa27x.rules +++ b/support/make/pxa27x/pxa27x.rules @@ -12,6 +12,7 @@ define PXA27X_HELP jflashmm : (default) use the Intel JFLASHMM tool to install xflash : Use the Intel XFLASH tool to install + openocd : Use openocd to install endef HELP += $(PXA27X_HELP) diff --git a/support/make/pxa27x/xflash.extra b/support/make/pxa27x/xflash.extra index 990c7e39..a0cc835b 100644 --- a/support/make/pxa27x/xflash.extra +++ b/support/make/pxa27x/xflash.extra @@ -9,7 +9,7 @@ PROGRAMMER_FLAGS = -p imote2 PXA27X_JTAG_DEV ?= "JTAG CPU" program: FORCE - @echo " installing $(PLATFORM) binary using $(PROGRAM) with the $(PXA27X_JTAG_DEV)" + @echo " installing $(PLATFORM) binary using $(PROGRAM)" $(PROGRAMMER) $(PROGRAMMER_FLAGS) -tt $(PXA27X_JTAG_DEV) $(INSTALL_BIN) program_input: bin