Skip to content

Commit

Permalink
Sync PlatformIO build script
Browse files Browse the repository at this point in the history
Signed-off-by: Valerii Koval <[email protected]>
  • Loading branch information
valeros authored Aug 14, 2024
1 parent d7019d1 commit 6a2ba3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/platformio/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@
)
series = mcu_type[:7].upper() + "xx"
variants_dir = (
join("$PROJECT_DIR", board_config.get("build.variants_dir"))
join(env.subst("$PROJECT_DIR"), board_config.get("build.variants_dir"))
if board_config.get("build.variants_dir", "")
else join(FRAMEWORK_DIR, "variants")
)
variant_dir = join(variants_dir, variant)
inc_variant_dir = variant_dir
if not IS_WINDOWS and not (
set(["_idedata", "idedata"]) & set(COMMAND_LINE_TARGETS) and " " not in variant_dir
):
if not IS_WINDOWS and not (env.IsIntegrationDump() and " " not in variant_dir):
inc_variant_dir = variant_dir.replace("(", r"\(").replace(")", r"\)")

upload_protocol = env.subst("$UPLOAD_PROTOCOL")
Expand Down

0 comments on commit 6a2ba3f

Please sign in to comment.