summaryrefslogtreecommitdiff
path: root/src/ecosboard.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-12-01 19:52:00 -0800
committerZachary T Welch <zw@superlucidity.net>2009-12-02 13:26:26 -0800
commiteaf10f69de969652d03742809b9c970158b90719 (patch)
treebb382e74018d2352a0ee05912d53c34b28ad6113 /src/ecosboard.c
parent34654359a918edae10ca7dd7ebc0a487fdf609a4 (diff)
downloadopenocd+libswd-eaf10f69de969652d03742809b9c970158b90719.tar.gz
openocd+libswd-eaf10f69de969652d03742809b9c970158b90719.tar.bz2
openocd+libswd-eaf10f69de969652d03742809b9c970158b90719.tar.xz
openocd+libswd-eaf10f69de969652d03742809b9c970158b90719.zip
remove BUILD_IOUTIL symbol
Add ioutil_stubs.c to provide an empty ioutil_init() routine. Add ioutil.h to prevent applications from needing to declare it. Allows unconditionally calling that function during startup, and the resulting libocdhelper library API is now more stable. Prints a DEBUG message when the stub implementation is included.
Diffstat (limited to 'src/ecosboard.c')
-rw-r--r--src/ecosboard.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ecosboard.c b/src/ecosboard.c
index dcd497ce..cfb57655 100644
--- a/src/ecosboard.c
+++ b/src/ecosboard.c
@@ -23,6 +23,7 @@
#include "types.h"
#include "jtag.h"
+#include "ioutil.h"
#include "configuration.h"
#include "xsvf.h"
#include "svf.h"
@@ -942,8 +943,6 @@ static int add_default_dirs(void)
return ERROR_OK;
}
-int ioutil_init(struct command_context *cmd_ctx);
-
int main(int argc, char *argv[])
{
/* ramblockdevice will be the same address every time. The deflate app uses a buffer 16mBytes out, so we
@@ -1080,13 +1079,8 @@ int main(int argc, char *argv[])
command_set_output_handler(cmd_ctx, configuration_output_handler, NULL);
command_context_mode(cmd_ctx, COMMAND_CONFIG);
-#if BUILD_IOUTIL
if (ioutil_init(cmd_ctx) != ERROR_OK)
- {
return EXIT_FAILURE;
- }
-#endif
-
#ifdef CYGPKG_PROFILE_GPROF
COMMAND_REGISTER(cmd_ctx, NULL, "ecosboard_profile", eCosBoard_handle_eCosBoard_profile_command,