Tools: create CHIBIOS_GIT_VERSION build-time define

This commit is contained in:
Peter Barker 2018-06-12 13:33:42 +10:00 committed by Francisco Ferreira
parent beb2147191
commit e9a07bdd6f
2 changed files with 2 additions and 0 deletions

View File

@ -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):

View File

@ -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