From b0c16f7eb94f62dc1ff1a0f60ef0ec0dcc766068 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Jan 2018 19:42:59 +1100 Subject: [PATCH] waf: auto-build abin files for ChibiOS --- Tools/ardupilotwaf/chibios.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index c86c4b092d..e08ade3c32 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -62,7 +62,8 @@ class generate_fw(Task.Task): color='CYAN' run_str='${OBJCOPY} -O binary ${SRC} ${SRC}.bin && \ python ${UPLOAD_TOOLS}/px_mkfw.py --image ${SRC}.bin \ - --prototype ${BUILDROOT}/apj.prototype > ${TGT}' + --prototype ${BUILDROOT}/apj.prototype > ${TGT} && \ + ${CHIBIOS_SCRIPTS}/make_abin.sh ${SRC}.bin ${SRC}.abin' always_run = True def keyword(self): return "Generating" @@ -115,6 +116,7 @@ def configure(cfg): env.BUILDROOT = bldpath('') env.PT_DIR = srcpath('Tools/ardupilotwaf/chibios/image') env.UPLOAD_TOOLS = srcpath('Tools/ardupilotwaf') + env.CHIBIOS_SCRIPTS = srcpath('libraries/AP_HAL_ChibiOS/hwdef/scripts') env.APJ_TOOL = srcpath('Tools/scripts/apj_tool.py') env.SERIAL_PORT = srcpath('/dev/serial/by-id/*_STLink*')