summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-08 14:34:57 +0700
committerhathach <[email protected]>2026-06-08 14:34:57 +0700
commitbfaa3b6c4f9a0d64641155dc4e4f4e258a1f5eb5 (patch)
tree58113859c36ea5fc5923a2fcb6fd3a996921b61e /tools
parent97480bad2ce5ddbb38be6bfe00491c49b6ea2afe (diff)
tools/gen_presets: build into cmake-build-<board> with single-config Ninja
Change the default configure preset binaryDir from build/<board> to cmake-build-<board> (the dir name HIL expects) and switch the generator from Ninja Multi-Config to single-config Ninja. Multi-Config nests binaries under a RelWithDebInfo/ subdir, which hil_test.py does not look in; single-config emits device/<ex>/<ex>.elf so preset-built firmware is directly consumable by `hil_test.py -B examples`. Regenerated BoardPresets.json (also picks up the tracked ch32v103c_bluepill board that was missing from presets). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen_presets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gen_presets.py b/tools/gen_presets.py
index 94a9361db..60404a5a7 100755
--- a/tools/gen_presets.py
+++ b/tools/gen_presets.py
@@ -31,17 +31,17 @@ def main():
{"name": "default",
"hidden": True,
"description": r"Configure preset for the ${presetName} board",
- "generator": "Ninja Multi-Config",
- "binaryDir": r"${sourceDir}/build/${presetName}",
+ "generator": "Ninja",
+ "binaryDir": r"${sourceDir}/cmake-build-${presetName}",
"cacheVariables": {
- "CMAKE_DEFAULT_BUILD_TYPE": "RelWithDebInfo",
+ "CMAKE_BUILD_TYPE": "RelWithDebInfo",
"BOARD": r"${presetName}"
}},
{"name": "default single config",
"hidden": True,
"description": r"Configure preset for the ${presetName} board",
"generator": "Ninja",
- "binaryDir": r"${sourceDir}/build/${presetName}",
+ "binaryDir": r"${sourceDir}/cmake-build-${presetName}",
"cacheVariables": {
"BOARD": r"${presetName}"
}}]