[core] Fix compilation on Linux

This commit is contained in:
Kuba Szczodrzyński
2023-04-11 19:15:56 +02:00
parent 3ba3c2a2be
commit 775e06b259
3 changed files with 3 additions and 2 deletions

View File

@@ -288,6 +288,7 @@ queue.AddLibrary(
base_dir=ROOT_DIR,
srcs=[
"+<os/**/*.c>",
"-<os/platform_stub.c>",
],
includes=[
"+<os/*>",

View File

@@ -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

View File

@@ -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"'
)