Skip to content

Commit

Permalink
Do not package crt0.o in SDK
Browse files Browse the repository at this point in the history
Previously the linker script referred to crt0.o which is why it was
necessary that it was part of the SDK. However, now libmicrokit.a
contains crt0.o and so it is not necessary to continue distributing
crt0.o separately.

Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Jan 11, 2024
1 parent 4e1e20f commit d0f9718
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions build_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,6 @@ def build_lib_component(
# Make output read-only
dest.chmod(0o444)

crt0 = build_dir / "crt0.o"
dest = lib_dir / "crt0.o"
dest.unlink(missing_ok=True)
copy(crt0, dest)
# Make output read-only
dest.chmod(0o444)

include_dir = root_dir / "board" / board.name / config.name / "include"
source_dir = Path(component_name) / "include"
for p in source_dir.rglob("*"):
Expand Down

0 comments on commit d0f9718

Please sign in to comment.