The default script search path on Windows seems to be out of date with the current layout, causing the standard scripts not to be found after a conventional './configure && make && make install' under msys/MinGW. The same should hold true for cygwin native builds although not verified.
Update the search path to ../share/openocd/scripts instead of ../lib/openocd, relative the openocd executable. Signed-off-by: Andreas Fritiofson <andreas.fritiof...@gmail.com> --- src/helper/options.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helper/options.c b/src/helper/options.c index 874196e..5792e11 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -74,21 +74,21 @@ static void add_default_dirs(void) add_script_search_dir(strExePath); } /* - * Add support for the default (as of 20080121) layout when - * using autotools and cygwin to build native MinGW binary. + * Add support for the default (as of 20091118) layout when + * using autotools and cygwin/MinGW to build native binary. * Path separator is converted to UNIX style so that MinGW is * pleased. * * bin/openocd.exe - * lib/openocd/event/at91eb40a_reset.cfg - * lib/openocd/target/at91eb40a.cfg + * share/openocd/scripts/interface/dummy.cfg + * share/openocd/scripts/target/at91eb40a.cfg */ { char strExePath [MAX_PATH]; char *p; GetModuleFileName (NULL, strExePath, MAX_PATH); *strrchr(strExePath, '\\') = 0; - strcat(strExePath, "/../lib/"PACKAGE); + strcat(strExePath, "/../share/"PACKAGE"/scripts"); for (p = strExePath; *p; p++) { if (*p == '\\') *p = '/'; -- 1.6.3.3 _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development