This is an automated email from Gerrit. Freddie Chopin ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/785
-- gerrit commit c0819e903eb22e1589a8ab5c60cebae97e7b5273 Author: Freddie Chopin <[email protected]> Date: Fri Aug 17 11:54:24 2012 +0200 Add another scripts search path for Windows builds Add single "scripts" folder to search path for Windows OpenOCD builds that don't use cygwin bin/openocd.exe scripts/interface/dummy.cfg scripts/target/at91eb40a.cfg Change-Id: Idbb08d1368b06f25da44f4f9ab1511db992b1724 Signed-off-by: Freddie Chopin <[email protected]> diff --git a/src/helper/options.c b/src/helper/options.c index 98cd634..48c1211 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -93,6 +93,25 @@ static void add_default_dirs(void) } add_script_search_dir(strExePath); } + /* + * Add single "scripts" folder to search path for Windows OpenOCD builds that don't use cygwin + * + * bin/openocd.exe + * scripts/interface/dummy.cfg + * scripts/target/at91eb40a.cfg + */ + { + char strExePath[MAX_PATH]; + char *p; + GetModuleFileName(NULL, strExePath, MAX_PATH); + *strrchr(strExePath, '\\') = 0; + strcat(strExePath, "/../scripts"); + for (p = strExePath; *p; p++) { + if (*p == '\\') + *p = '/'; + } + add_script_search_dir(strExePath); + } #else /* * The directory containing OpenOCD-supplied scripts should be -- ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
