Skip to content

Commit

Permalink
Export linker scripts in the bazel build. (#1944)
Browse files Browse the repository at this point in the history
* Export linker scripts in the bazel build.

Make the rp2040 and rp2350 linker scripts available in downstream
projects bazel builds.

* Move exports_files below the package declaration.
  • Loading branch information
davexroth authored Sep 28, 2024
1 parent 0e5ef0f commit 8c08f2b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rp2_common/pico_crt0/rp2040/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
package(default_visibility = ["//visibility:public"])

exports_files(
[
"memmap_blocked_ram.ld",
"memmap_copy_to_ram.ld",
"memmap_default.ld",
"memmap_no_flash.ld",
]
)

# It's possible to set linker scripts globally or on a per-binary basis.
#
# Setting globally:
Expand Down
8 changes: 8 additions & 0 deletions src/rp2_common/pico_crt0/rp2350/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
package(default_visibility = ["//visibility:public"])

exports_files(
[
"memmap_copy_to_ram.ld",
"memmap_default.ld",
"memmap_no_flash.ld",
]
)

# It's possible to set linker scripts globally or on a per-binary basis.
#
# Setting globally:
Expand Down

0 comments on commit 8c08f2b

Please sign in to comment.