Skip to content

Commit a5b5907

Browse files
kebianizaoborneoa
authored andcommitted
build: Fix out-of-tree with --disable-dependency-tracking configure flag
After bootstrapping build, if we want to do an out-of-tree build (ie: in the OOT-build dir) we have a build failure because build system relies on the OOT-build/src directory exists ```sh ./bootstrap mkdir OOT-build cd OOT-build ../configure --disable-dependency-tracking --<flag1> --<flag2> ... make $ LANG=C make cat ../src/helper/startup.tcl ../src/jtag/startup.tcl ../src/target/startup.tcl ../src/server/startup.tcl ../src/flash/startup.tcl | ../src/helper/bin2char.sh > src/startup_tcl.inc || { rm -f src/startup_tcl.inc; false; } /bin/bash: line 1: src/startup_tcl.inc: No such file or directory make: *** [Makefile:6603: src/startup_tcl.inc] Error 1 ``` These kind of errors are fixed indicating relevant directory creation in Makefile.am before actually relying on it. Change-Id: I8185fd41ef942184597dc4c0092796034572cbe1 Signed-off-by: Raúl Sánchez Siles <[email protected]> Reviewed-on: http://openocd.zylin.com/6106 Tested-by: jenkins Reviewed-by: Antonio Borneo <[email protected]>
1 parent 6405d35 commit a5b5907

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ BUILT_SOURCES += %D%/startup_tcl.inc
6565

6666
# Convert .tcl to c-array
6767
%D%/startup_tcl.inc: $(STARTUP_TCL_SRCS)
68+
mkdir -p %D%
6869
cat $^ | $(BIN2C) > $@ || { rm -f $@; false; }
6970

7071
# add generated files to make clean list

0 commit comments

Comments
 (0)