mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-21 08:03:42 +08:00
openpilot v0.9.8 release
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
This commit is contained in:
committed by
Adeeb Shihadeh
parent
d64fb1838d
commit
dd778596b7
+4
-1
@@ -84,6 +84,7 @@ def build_project(project_name, project, extra_flags):
|
||||
'..',
|
||||
panda_root,
|
||||
f"{panda_root}/board/",
|
||||
f"{panda_root}/../opendbc/safety/",
|
||||
]
|
||||
|
||||
env = Environment(
|
||||
@@ -167,7 +168,9 @@ Export('base_project_f4', 'base_project_h7', 'build_project')
|
||||
|
||||
# Common autogenerated includes
|
||||
with open("board/obj/gitversion.h", "w") as f:
|
||||
f.write(f'const uint8_t gitversion[] = "{get_version(BUILDER, BUILD_TYPE)}";\n')
|
||||
version = get_version(BUILDER, BUILD_TYPE)
|
||||
f.write(f'extern const uint8_t gitversion[{len(version)}];\n')
|
||||
f.write(f'const uint8_t gitversion[{len(version)}] = "{version}";\n')
|
||||
|
||||
with open("board/obj/version", "w") as f:
|
||||
f.write(f'{get_version(BUILDER, BUILD_TYPE)}')
|
||||
|
||||
Reference in New Issue
Block a user