got most of the WebUI updated and working

This commit is contained in:
2024-05-31 03:03:47 +02:00
parent 9301607468
commit c9fba23e70
10 changed files with 305 additions and 432 deletions

View File

@@ -1,8 +0,0 @@
import subprocess
revision = (
subprocess.check_output(["git", "rev-parse", "--short=10", "HEAD"])
.strip()
.decode("utf-8")
)
print("-DGIT_REV='\"%s\"'" % revision)

View File

@@ -3,6 +3,12 @@ env.Execute("\"$PYTHONEXE\" -m pip install jinja2")
import struct2json
import dtcs
from os import popen
git_revision = popen('git rev-parse --short HEAD').read().strip()
env.Replace(PROGNAME="firmware_%s.fw" % git_revision)
env.Append(CPPDEFINES=[('GIT_REV', '\\"{}\\"'.format(git_revision))])
struct2json.struct2json()
dtcs.build_dtcs()