From a5119c4abb8caabaaae9aa79b40dfa6c8ecb7c32 Mon Sep 17 00:00:00 2001 From: kusy Date: Thu, 29 May 2008 20:16:43 +0000 Subject: [PATCH] adding support for OpenOCD - jtag for linux --- support/make/pxa27x/openocd.extra | 18 ++++++++++++++++++ support/make/pxa27x/pxa27x.rules | 1 + support/make/pxa27x/xflash.extra | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 support/make/pxa27x/openocd.extra 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 -- 2.39.2