On Friday 16 October 2009, Dean Glazeski wrote:
> make[3]: *** No rule to make target
> `../../../openocd/src/helper/bin2char.exe',
> needed by `xscale_debug.h'. Stop.
>
> I believe the issue stems from how I'm doing the build. I made a separate
> build directory instead of building alongside the source code. As it turns
> out, the bin2char.exe does exist in my build directory, but not in the
> source tree. This causes the failure during make. Any fixes?
Yeah, I was able to reproduce this with a snapshot; the Makefile.am
in the target directory has to refer explicitly to the top_builddir
for the "bin2char" thing, and the top_srcdir for the handler binary
(which would be the next issue you trip over).
This fixed it for me; I'm checking it in.
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -10,10 +10,11 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/jtag \
-I$(top_srcdir)/src/xsvf
-BIN2C = $(top_srcdir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
+BIN2C = $(top_builddir)/src/helper/bin2char$(EXEEXT_FOR_BUILD)
+DEBUG_HANDLER = $(top_srcdir)/src/target/xscale/debug_handler.bin
-xscale_debug.h: $(BIN2C) xscale/debug_handler.bin
- $(BIN2C) < xscale/debug_handler.bin xscale_debug_handler >
xscale_debug.h
+xscale_debug.h: $(BIN2C) $(DEBUG_HANDLER)
+ $(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h
METASOURCES = AUTO
noinst_LTLIBRARIES = libtarget.la
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development