You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Separate linker scripts out into include files
Allows for much simpler custom linker scripts
* Add customisable heap location, with pico_set_linker_script_var function
* Add kitchen sink test of custom linker scripts
* Add pico_add_linker_script_override_path to make overriding individual files easier
* Add simple overlay demo
* Move linker scripts out of crt0
Breaking change for Bazel builds using different binary types, instead of setting PICO_DEFAULT_LINKER_SCRIPT to eg `//src/rp2_common/pico_crt0:no_flash_linker_script` it is now `//src/rp2_common/pico_standard_link:no_flash_linker_script`
* Add excludes.ld files for default memmap
* Put mem functions in SRAM
* Add section_extra files to make adding extra sections simpler
* Add generated override files - currently unused, but can be overridden in the future by CMake/bazel functions
* Add PICO_DEFAULT_BINARY_TYPE to Bazel
* Add bazel pico_set_binary_type transition, to allow setting binary type for individual binaries
* Add kitchen_sink_ram_section and kitchen_sink_simple_overlay tests to bazel
Copy file name to clipboardExpand all lines: bazel/config/BUILD.bazel
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -217,10 +217,22 @@ string_flag(
217
217
build_setting_default="Debug",
218
218
)
219
219
220
-
# PICO_BAZEL_CONFIG: PICO_DEFAULT_LINKER_SCRIPT, [Bazel only] The library that provides a linker script to link into all binaries, default=//src/rp2_common/pico_crt0:default_linker_script, group=pico_standard_link
220
+
# PICO_BAZEL_CONFIG: PICO_DEFAULT_BINARY_TYPE, The default binary type to use, type=string, default=default, group=build
221
+
string_flag(
222
+
name="PICO_DEFAULT_BINARY_TYPE",
223
+
build_setting_default="default",
224
+
values= [
225
+
"default",
226
+
"no_flash",
227
+
"copy_to_ram",
228
+
"blocked_ram",
229
+
],
230
+
)
231
+
232
+
# PICO_BAZEL_CONFIG: PICO_DEFAULT_LINKER_SCRIPT, [Bazel only] The library that provides a linker script to link into all binaries, default=//src/rp2_common/pico_standard_link:default_linker_script, group=pico_standard_link
# PICO_BUILD_DEFINE: PICO_USE_BLOCKED_RAM, whether this is a 'blocked_ram' build, type=bool, default=0, but dependent on CMake options, group=pico_standard_link
# PICO_BUILD_DEFINE: PICO_COPY_TO_RAM, whether this is a 'copy_to_ram' build, type=bool, default=0, but dependent on CMake options, group=pico_standard_link
0 commit comments