From 775e06b25969c838dade0ffd1cf71a9136025e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 11 Apr 2023 19:15:56 +0200 Subject: [PATCH] [core] Fix compilation on Linux --- builder/family/beken-72xx.py | 1 + builder/utils/flash.py | 2 +- platform.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/builder/family/beken-72xx.py b/builder/family/beken-72xx.py index d2657a5..167b438 100644 --- a/builder/family/beken-72xx.py +++ b/builder/family/beken-72xx.py @@ -288,6 +288,7 @@ queue.AddLibrary( base_dir=ROOT_DIR, srcs=[ "+", + "-", ], includes=[ "+", diff --git a/builder/utils/flash.py b/builder/utils/flash.py index 59ebd52..69b8141 100644 --- a/builder/utils/flash.py +++ b/builder/utils/flash.py @@ -64,7 +64,7 @@ def env_add_flash_layout(env: Environment, board: PlatformBoardConfig): length = int(length, 16) defines[f"FLASH_{name}_OFFSET"] = f"0x{offset:06X}" defines[f"FLASH_{name}_LENGTH"] = f"0x{length:06X}" - fal_items += f"FAL_PART_TABLE_ITEM({name.lower()},{name})" + fal_items += f"FAL_PART_TABLE_ITEM({name.lower()}, {name})" flash_size = max(flash_size, offset + length) defines["FLASH_LENGTH"] = f"0x{flash_size:06X}" # for "root" partition diff --git a/platform.py b/platform.py index df355ce..854493a 100644 --- a/platform.py +++ b/platform.py @@ -26,7 +26,7 @@ def check_ltchiptool(install: bool): # update ltchiptool to a supported version print("Installing/updating ltchiptool") system( - f"{sys.executable} -m pip install -U --force-reinstall " + f'"{sys.executable}" -m pip install -U --force-reinstall ' f'"ltchiptool >= {LTCHIPTOOL_VERSION[1:]}a0, < 5.0"' )