From f3e1cddadf9bc7d2838a9a8208609028cfe6e4e3 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Tue, 5 Nov 2002 23:05:38 +0000 Subject: [PATCH] JTAG data dir path is now configurable via configure script. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@261 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/Makefile.am | 2 +- jtag/src/jtag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jtag/src/Makefile.am b/jtag/src/Makefile.am index 2e875499..cff3e020 100644 --- a/jtag/src/Makefile.am +++ b/jtag/src/Makefile.am @@ -33,4 +33,4 @@ jtag_DEPENDENCIES = tap/libtap.a part/libpart.a jtag_LDADD = -lreadline -lncurses -Ltap -ltap -Lpart -lpart -INCLUDES = -I$(top_srcdir)/include $(OPENWINCE_INC) +INCLUDES = -I$(top_srcdir)/include $(OPENWINCE_INC) -DJTAG_DATA_DIR=\"$(pkgdatadir)\" diff --git a/jtag/src/jtag.c b/jtag/src/jtag.c index 0ae9dc8c..31afa784 100644 --- a/jtag/src/jtag.c +++ b/jtag/src/jtag.c @@ -99,7 +99,7 @@ main( void ) t = get_token( NULL ); if (ps) parts_free( ps ); - ps = detect_parts( "../data" ); + ps = detect_parts( JTAG_DATA_DIR ); if (!ps->len) continue; parts_set_instruction( ps, "SAMPLE/PRELOAD" );