[core] Fix compilation on Linux
This commit is contained in:
@@ -288,6 +288,7 @@ queue.AddLibrary(
|
|||||||
base_dir=ROOT_DIR,
|
base_dir=ROOT_DIR,
|
||||||
srcs=[
|
srcs=[
|
||||||
"+<os/**/*.c>",
|
"+<os/**/*.c>",
|
||||||
|
"-<os/platform_stub.c>",
|
||||||
],
|
],
|
||||||
includes=[
|
includes=[
|
||||||
"+<os/*>",
|
"+<os/*>",
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ def env_add_flash_layout(env: Environment, board: PlatformBoardConfig):
|
|||||||
length = int(length, 16)
|
length = int(length, 16)
|
||||||
defines[f"FLASH_{name}_OFFSET"] = f"0x{offset:06X}"
|
defines[f"FLASH_{name}_OFFSET"] = f"0x{offset:06X}"
|
||||||
defines[f"FLASH_{name}_LENGTH"] = f"0x{length: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)
|
flash_size = max(flash_size, offset + length)
|
||||||
defines["FLASH_LENGTH"] = f"0x{flash_size:06X}"
|
defines["FLASH_LENGTH"] = f"0x{flash_size:06X}"
|
||||||
# for "root" partition
|
# for "root" partition
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def check_ltchiptool(install: bool):
|
|||||||
# update ltchiptool to a supported version
|
# update ltchiptool to a supported version
|
||||||
print("Installing/updating ltchiptool")
|
print("Installing/updating ltchiptool")
|
||||||
system(
|
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"'
|
f'"ltchiptool >= {LTCHIPTOOL_VERSION[1:]}a0, < 5.0"'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user