Skip to content

Commit 8c08f2b

Browse files
authored
Export linker scripts in the bazel build. (#1944)
* 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.
1 parent 0e5ef0f commit 8c08f2b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/rp2_common/pico_crt0/rp2040/BUILD.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
package(default_visibility = ["//visibility:public"])
22

3+
exports_files(
4+
[
5+
"memmap_blocked_ram.ld",
6+
"memmap_copy_to_ram.ld",
7+
"memmap_default.ld",
8+
"memmap_no_flash.ld",
9+
]
10+
)
11+
312
# It's possible to set linker scripts globally or on a per-binary basis.
413
#
514
# Setting globally:

src/rp2_common/pico_crt0/rp2350/BUILD.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package(default_visibility = ["//visibility:public"])
22

3+
exports_files(
4+
[
5+
"memmap_copy_to_ram.ld",
6+
"memmap_default.ld",
7+
"memmap_no_flash.ld",
8+
]
9+
)
10+
311
# It's possible to set linker scripts globally or on a per-binary basis.
412
#
513
# Setting globally:

0 commit comments

Comments
 (0)