14 lines
393 B
Python
Raw Normal View History

2024-05-30 23:37:01 +02:00
Import("env") # pylint: disable=undefined-variable
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))])
2024-05-30 23:37:01 +02:00
struct2json.struct2json()
dtcs.build_dtcs()