2021-03-24 21:44:32 +08:00
|
|
|
import os
|
2022-08-20 02:41:34 +08:00
|
|
|
import copy
|
2021-03-24 21:44:32 +08:00
|
|
|
|
2023-08-04 10:07:41 +08:00
|
|
|
Import('build_project', 'base_project_f4', 'base_project_h7')
|
2021-03-24 21:44:32 +08:00
|
|
|
|
2023-08-04 10:07:41 +08:00
|
|
|
build_projects = {
|
|
|
|
"panda": base_project_f4,
|
|
|
|
"panda_h7": base_project_h7,
|
2021-10-04 18:13:29 +08:00
|
|
|
}
|
|
|
|
|
2023-08-04 10:07:41 +08:00
|
|
|
for project_name, project in build_projects.items():
|
|
|
|
flags = [
|
2022-08-20 02:41:34 +08:00
|
|
|
"-DPANDA",
|
2021-03-24 21:44:32 +08:00
|
|
|
]
|
2024-02-17 14:58:01 +08:00
|
|
|
if ("ENABLE_SPI" in os.environ or "h7" in project_name):
|
2022-11-10 10:46:20 +08:00
|
|
|
flags.append('-DENABLE_SPI')
|
|
|
|
|
2023-08-04 10:07:41 +08:00
|
|
|
build_project(project_name, project, flags)
|