From 44a063e8187916e18bdefac580924b092b793861 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 20 Mar 2018 20:26:11 +1100 Subject: [PATCH] Tools: ardupilotwaf: chibios: change directory before running make_abin.sh Any waf build which is done outside of the git checkout will fail to create the abin without this, as it attempts to invoke git. An example of this is the autotest system --- Tools/ardupilotwaf/chibios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index e6b96f64b4..b2e072e805 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -81,7 +81,7 @@ class generate_fw(Task.Task): run_str='${OBJCOPY} -O binary ${SRC} ${SRC}.bin && \ python ${UPLOAD_TOOLS}/px_mkfw.py --image ${SRC}.bin \ --prototype ${BUILDROOT}/apj.prototype > ${TGT} && \ - ${TOOLS_SCRIPTS}/make_abin.sh ${SRC}.bin ${SRC}.abin' + cd ${TOOLS_SCRIPTS} && ./make_abin.sh $OLDPWD/${SRC}.bin $OLDPWD/${SRC}.abin' always_run = True def keyword(self): return "Generating"