Add web UI flasher functionality
This commit is contained in:
parent
313efb7604
commit
2a8e391342
5 changed files with 77 additions and 26 deletions
|
@ -5,4 +5,17 @@ revision = (
|
|||
.strip()
|
||||
.decode("utf-8")
|
||||
)
|
||||
print("'-DGIT_REV=\"%s\"'" % revision)
|
||||
|
||||
try:
|
||||
tag = (
|
||||
subprocess.check_output(["git", "describe", "--tags", "--exact-match"])
|
||||
.strip()
|
||||
.decode("utf-8")
|
||||
)
|
||||
git_tag_define = '-DGIT_TAG="%s"' % tag
|
||||
except subprocess.CalledProcessError:
|
||||
git_tag_define = ''
|
||||
|
||||
print("'-DGIT_REV=\"%s\"'" % revision)
|
||||
if git_tag_define:
|
||||
print(git_tag_define)
|
Loading…
Add table
Add a link
Reference in a new issue