build: add directory-oriented make workflows
Host SITL smoke / Deterministic Gazebo command path (push) Has been cancelled
Host SITL smoke / Deterministic Gazebo command path (push) Has been cancelled
This commit is contained in:
1 parent
4bc98adbc6
commit
7dc3ccb619
40 files changed
+1367
-278
No files matched your search
@@ -166,18 +166,22 @@ def validation_errors(layout, section_list, load_segments):
|
||||
)
|
||||
|
||||
for index, segment in enumerate(load_segments):
|
||||
if segment.memory_size and region_for_span(
|
||||
segment.virtual_address, segment.memory_size, layout
|
||||
) is None:
|
||||
if (
|
||||
segment.memory_size
|
||||
and region_for_span(segment.virtual_address, segment.memory_size, layout)
|
||||
is None
|
||||
):
|
||||
errors.append(
|
||||
f"PT_LOAD[{index}] virtual span "
|
||||
f"0x{segment.virtual_address:08X}.."
|
||||
f"0x{segment.virtual_address + segment.memory_size:08X} "
|
||||
"is outside declared memory"
|
||||
)
|
||||
if segment.file_size and region_for_span(
|
||||
segment.physical_address, segment.file_size, layout
|
||||
) is None:
|
||||
if (
|
||||
segment.file_size
|
||||
and region_for_span(segment.physical_address, segment.file_size, layout)
|
||||
is None
|
||||
):
|
||||
errors.append(
|
||||
f"PT_LOAD[{index}] physical span "
|
||||
f"0x{segment.physical_address:08X}.."
|
||||
@@ -200,9 +204,7 @@ def flash_operation_section_errors(layout, section_list):
|
||||
return []
|
||||
|
||||
|
||||
INSTRUCTION = re.compile(
|
||||
r"^\s*([0-9A-Fa-f]+):\s+([A-Za-z][A-Za-z0-9.]*)\s*(.*?)\s*$"
|
||||
)
|
||||
INSTRUCTION = re.compile(r"^\s*([0-9A-Fa-f]+):\s+([A-Za-z][A-Za-z0-9.]*)\s*(.*?)\s*$")
|
||||
DIRECT_BRANCH = re.compile(
|
||||
r"^(?:b(?:eq|ne|cs|hs|cc|lo|mi|pl|vs|vc|hi|ls|ge|lt|gt|le)?"
|
||||
r"(?:\.[nw])?|blx?|bx|cbz|cbnz)$"
|
||||
@@ -321,7 +323,9 @@ def main():
|
||||
|
||||
errors = flash_operation_section_errors(layout, section_list)
|
||||
if errors:
|
||||
raise ValueError("Flash-operation placement validation failed:\n " + "\n ".join(errors))
|
||||
raise ValueError(
|
||||
"Flash-operation placement validation failed:\n " + "\n ".join(errors)
|
||||
)
|
||||
data = next(section for section in section_list if section.name == ".data")
|
||||
objdump = llvm_tool("llvm-objdump")
|
||||
errors = sram_control_flow_errors(
|
||||
@@ -337,7 +341,9 @@ def main():
|
||||
),
|
||||
)
|
||||
if errors:
|
||||
raise ValueError("Flash-operation control-flow validation failed:\n " + "\n ".join(errors))
|
||||
raise ValueError(
|
||||
"Flash-operation control-flow validation failed:\n " + "\n ".join(errors)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user