SCRIPT: add add_script_search_dir cmd
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Wed, 17 Mar 2010 09:57:44 +0000 (09:57 +0000)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Wed, 17 Mar 2010 09:57:44 +0000 (09:57 +0000)
Add a add_script_search_dir cmd so that adding search
dir's can be added to cfg scripts.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
NEWS
doc/openocd.texi
src/openocd.c

diff --git a/NEWS b/NEWS
index cc2560b6e6c052ede599780fbd12453d712d6f20..0b9a6a4a4ed2c1c641a1d6bfa2fe022748b9b0f4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,11 @@ JTAG Layer:
 Boundary Scan:
 
 Target Layer:
+       MIPS:
+               - "ejtag_srst" variant removed. The same functionality is
+                 obtained by using "reset_config none".
+               - added PIC32MX software reset support, this means srst is not
+                 required to be connected anymore.
 
 Flash Layer:
        New "stellaris recover" command, implements the procedure
@@ -23,12 +28,15 @@ Flash Layer:
                state to the factory defaults, including erasing
                the flash and its protection bits, and possibly
                re-enabling hardware debugging).
-
+       PIC32MX now uses algorithm for flash programming, this
+               has increased the performance by approx 96%.
 
 Board, Target, and Interface Configuration Scripts:
        Support IAR LPC1768 kickstart board (by Olimex)
 
 Core Jim/TCL Scripting:
+       New "add_script_search_dir" command, behaviour is the same
+               as the "-s" cmd line option.
 
 Documentation:
 
index 780cd4d73348887d071058ee3593907d7457de8e..98fc6900709a11973bedab77acd48128c4211ea1 100644 (file)
@@ -590,6 +590,7 @@ Configuration files and scripts are searched for in
 @enumerate
 @item the current directory,
 @item any search dir specified on the command line using the @option{-s} option,
+@item any search dir specified using the @command{add_script_search_dir} command,
 @item @file{$HOME/.openocd} (not on Windows),
 @item the site wide script library @file{$pkgdatadir/site} and
 @item the OpenOCD-supplied script library @file{$pkgdatadir/scripts}.
@@ -5396,6 +5397,10 @@ Redirect logging to @var{filename};
 the initial log output channel is stderr.
 @end deffn
 
+@deffn Command add_script_search_dir [directory]
+Add @var{directory} to the file/script search path.
+@end deffn
+
 @anchor{Target State handling}
 @section Target State handling
 @cindex reset
index d376f5f8e1b1b5923419a9466349e931be483013..54c454d7486b6e21cae8f17157bdc90d909d081a 100644 (file)
@@ -159,6 +159,16 @@ COMMAND_HANDLER(handle_init_command)
        return ERROR_OK;
 }
 
+COMMAND_HANDLER(handle_add_script_search_dir_command)
+{
+       if (CMD_ARGC != 1)
+               return ERROR_COMMAND_SYNTAX_ERROR;
+
+       add_script_search_dir(CMD_ARGV[0]);
+
+       return ERROR_OK;
+}
+
 static const struct command_registration openocd_command_handlers[] = {
        {
                .name = "version",
@@ -181,6 +191,13 @@ static const struct command_registration openocd_command_handlers[] = {
                        "Unless 'noinit' is called, this command is "
                        "called automatically at the end of startup.",
 
+       },
+       {
+               .name = "add_script_search_dir",
+               .handler = &handle_add_script_search_dir_command,
+               .mode = COMMAND_ANY,
+               .help = "dir to search for config files and scripts",
+
        },
        COMMAND_REGISTRATION_DONE
 };

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)