diff options
Diffstat (limited to 'src/helper/options.c')
-rw-r--r-- | src/helper/options.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/helper/options.c b/src/helper/options.c index 53e23c95..8242a8dd 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -97,10 +97,14 @@ int add_default_dirs(void) add_script_search_dir(strExePath); } #else - /* Add dir for openocd supplied scripts last so that user can over - ride those scripts if desired. */ - add_script_search_dir(PKGDATADIR); - add_script_search_dir(PKGLIBDIR); + /* + * The directory containing OpenOCD-supplied scripts should be + * listed last in the built-in search order, so the user can + * override these scripts with site-specific customizations. + */ + /// @todo Implement @c add_script_search_dir("${HOME}/.openocd"). + add_script_search_dir(PKGDATADIR "/site"); + add_script_search_dir(PKGDATADIR "/scripts"); #endif return ERROR_OK; } |