X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fecosboard.c;h=f6e040fac3a26961059a5fca828c9db9cadd0134;hb=4e27305ed5dac23e8b9a43e43b4b908dc53a0a20;hp=f7523545a10e2676308b638b2f05043ba6669a75;hpb=41d0901115903cb02b42249690b33cf616e133b5;p=openocd.git diff --git a/src/ecosboard.c b/src/ecosboard.c index f7523545a1..f6e040fac3 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2009 by Øyvind Harboe * + * Copyright (C) 2007-2010 by Øyvind Harboe * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -99,10 +100,6 @@ static bool writeLog = true; char hwaddr[512]; - -extern struct flash_driver *flash_drivers[]; -extern struct target_type *target_types[]; - #ifdef CYGPKG_PROFILE_GPROF #include @@ -1093,6 +1090,9 @@ int main(int argc, char *argv[]) command_set_output_handler(cmd_ctx, configuration_output_handler, NULL); command_context_mode(cmd_ctx, COMMAND_CONFIG); + if (util_init(cmd_ctx) != ERROR_OK) + return EXIT_FAILURE; + if (ioutil_init(cmd_ctx) != ERROR_OK) return EXIT_FAILURE;