From efc6063df873b3419010ad66d183b997d52e630c Mon Sep 17 00:00:00 2001 From: oharboe Date: Fri, 11 Jul 2008 06:44:22 +0000 Subject: startup.tcl (former commands.tcl) is now embedded into OpenOCD executable. git-svn-id: svn://svn.berlios.de/openocd/trunk@787 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/openocd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/openocd.c') diff --git a/src/openocd.c b/src/openocd.c index 64965e37..eef6e60d 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -742,12 +742,15 @@ void initJim(void) interp->cb_fgets = openocd_jim_fgets; } +extern const unsigned char filedata_startup[]; + /* after command line parsing */ void initJim2(void) { - if (Jim_Eval(interp, "source [find tcl/commands.tcl]")==JIM_ERR) + if (Jim_Eval(interp, filedata_startup)==JIM_ERR) { - LOG_ERROR("Can not find tcl/commands.tcl - check installation"); + LOG_ERROR("Failed to run startup.tcl (embedded into OpenOCD compile time)"); + Jim_PrintErrorMessage(interp); exit(-1); } } -- cgit v1.2.3