From 8c08f2b8ff9857b34599650583dd02f8e68f64df Mon Sep 17 00:00:00 2001 From: Dave Roth <49175007+davexroth@users.noreply.github.com> Date: Fri, 27 Sep 2024 21:50:22 -0700 Subject: [PATCH] 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. --- src/rp2_common/pico_crt0/rp2040/BUILD.bazel | 9 +++++++++ src/rp2_common/pico_crt0/rp2350/BUILD.bazel | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/rp2_common/pico_crt0/rp2040/BUILD.bazel b/src/rp2_common/pico_crt0/rp2040/BUILD.bazel index d7045867..dcf727cc 100644 --- a/src/rp2_common/pico_crt0/rp2040/BUILD.bazel +++ b/src/rp2_common/pico_crt0/rp2040/BUILD.bazel @@ -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: diff --git a/src/rp2_common/pico_crt0/rp2350/BUILD.bazel b/src/rp2_common/pico_crt0/rp2350/BUILD.bazel index 5c13f5a9..88cbd103 100644 --- a/src/rp2_common/pico_crt0/rp2350/BUILD.bazel +++ b/src/rp2_common/pico_crt0/rp2350/BUILD.bazel @@ -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: