waf: include integer version of GIT_VERSION (hash)

This commit is contained in:
Peter Barker 2022-02-02 11:45:19 +11:00 committed by Andrew Tridgell
parent fa7e205d5d
commit 410507d54d
1 changed files with 1 additions and 0 deletions

View File

@ -416,6 +416,7 @@ class Board:
def build(self, bld):
bld.ap_version_append_str('GIT_VERSION', bld.git_head_hash(short=True))
bld.ap_version_append_int('GIT_VERSION_INT', int("0x" + bld.git_head_hash(short=True), base=16))
import time
ltime = time.localtime()
if bld.env.build_dates: