forked from auracaster/openocd
Fix some problems with the bin2char utility
Don't hardcode the type for the array, just output the array initializer so the includer can choose the type and storage class, zero-terminate at will and so on. Change-Id: I6d5e0710eaaba0a218b3eb32f6569177356f4462 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2176 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
@@ -16,12 +16,12 @@ EXTRA_DIST = \
|
||||
startup.tcl \
|
||||
$(wildcard $(srcdir)/xscale/*)
|
||||
|
||||
DEBUG_HEADER = xscale_debug.h
|
||||
DEBUG_HEADER = xscale_debug.inc
|
||||
BUILT_SOURCES = $(DEBUG_HEADER)
|
||||
CLEANFILES = $(DEBUG_HEADER)
|
||||
|
||||
$(DEBUG_HEADER): $(BIN2C) $(DEBUG_HANDLER)
|
||||
$(BIN2C) < $(DEBUG_HANDLER) xscale_debug_handler > xscale_debug.h
|
||||
$(DEBUG_HEADER): $(DEBUG_HANDLER) $(BIN2C)
|
||||
$(BIN2C) < $< > $@ || { rm -f $@; false; }
|
||||
|
||||
METASOURCES = AUTO
|
||||
noinst_LTLIBRARIES = libtarget.la
|
||||
|
||||
Reference in New Issue
Block a user