From e9a07bdd6f7e9190f1406a88db365d50475e2ed4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 12 Jun 2018 13:33:42 +1000 Subject: [PATCH] Tools: create CHIBIOS_GIT_VERSION build-time define --- Tools/ardupilotwaf/boards.py | 1 + Tools/scripts/build_ci.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 506e939fd7..71d811c206 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -395,6 +395,7 @@ class chibios(Board): def build(self, bld): super(chibios, self).build(bld) + bld.ap_version_append_str('CHIBIOS_GIT_VERSION', bld.git_submodule_head_hash('ChibiOS', short=True)) bld.load('chibios') def pre_build(self, bld): diff --git a/Tools/scripts/build_ci.sh b/Tools/scripts/build_ci.sh index afb0f5be75..c8a697a42d 100755 --- a/Tools/scripts/build_ci.sh +++ b/Tools/scripts/build_ci.sh @@ -17,6 +17,7 @@ rm -rf $BUILDROOT export GIT_VERSION="ci_test" export NUTTX_GIT_VERSION="ci_test" export PX4_GIT_VERSION="ci_test" +export CHIBIOS_GIT_VERSION="ci_test" export CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" # If CI_BUILD_TARGET is not set, build 3 different ones