mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: create CHIBIOS_GIT_VERSION build-time define
This commit is contained in:
parent
beb2147191
commit
e9a07bdd6f
@ -395,6 +395,7 @@ class chibios(Board):
|
|||||||
|
|
||||||
def build(self, bld):
|
def build(self, bld):
|
||||||
super(chibios, self).build(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')
|
bld.load('chibios')
|
||||||
|
|
||||||
def pre_build(self, bld):
|
def pre_build(self, bld):
|
||||||
|
@ -17,6 +17,7 @@ rm -rf $BUILDROOT
|
|||||||
export GIT_VERSION="ci_test"
|
export GIT_VERSION="ci_test"
|
||||||
export NUTTX_GIT_VERSION="ci_test"
|
export NUTTX_GIT_VERSION="ci_test"
|
||||||
export PX4_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"
|
export CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
|
||||||
|
|
||||||
# If CI_BUILD_TARGET is not set, build 3 different ones
|
# If CI_BUILD_TARGET is not set, build 3 different ones
|
||||||
|
Loading…
Reference in New Issue
Block a user