[core] Fix compilation on Linux
This commit is contained in:
@@ -288,6 +288,7 @@ queue.AddLibrary(
|
||||
base_dir=ROOT_DIR,
|
||||
srcs=[
|
||||
"+<os/**/*.c>",
|
||||
"-<os/platform_stub.c>",
|
||||
],
|
||||
includes=[
|
||||
"+<os/*>",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user