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
|
2024-05-31 03:03:47 +02:00
|
|
|
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()
|