This is an automated email from Gerrit. Raúl Sánchez Siles ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6106
-- gerrit commit cd488e503ea8b0de93d4066f09fbd63592d949d3 Author: Raúl Sánchez Siles <[email protected]> Date: Mon Mar 15 13:53:17 2021 +0100 build: Fix out-of-tree. After bootstrapping build, if I want to do an out-of-tree build I found some minor issues, mainly due to the fact that some directories required for build are not created in a clean/new out-of-tree build. ```sh ./bootstrap mkdir OOT-build cd OOT-build ../configure --<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 actualy relying on it. Change-Id: I8185fd41ef942184597dc4c0092796034572cbe1 Signed-off-by: Raúl Sánchez Siles <[email protected]> diff --git a/src/Makefile.am b/src/Makefile.am index 781c1e7..432c31e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -65,6 +65,7 @@ BUILT_SOURCES += %D%/startup_tcl.inc # Convert .tcl to c-array %D%/startup_tcl.inc: $(STARTUP_TCL_SRCS) + mkdir -p %D% cat $^ | $(BIN2C) > $@ || { rm -f $@; false; } # add generated files to make clean list diff --git a/src/jtag/Makefile.am b/src/jtag/Makefile.am index b82914b..e78b86b 100644 --- a/src/jtag/Makefile.am +++ b/src/jtag/Makefile.am @@ -20,6 +20,7 @@ endif MINIDRIVER_IMP_DIR = %D%/minidriver %D%/jtag_minidriver.h: $(JTAG_MINIDRIVER_DIR)/jtag_minidriver.h + mkdir -p %D% cp $< $@ BUILT_SOURCES += %D%/jtag_minidriver.h @@ -47,6 +48,7 @@ endif # endif // MINIDRIVER %D%/minidriver_imp.h: $(MINIDRIVER_IMP_DIR)/minidriver_imp.h + mkdir -p %D% cp $< $@ -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
