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
Enforce ordering of pico_add_extra_outputs and picotool functions (#2054)
* Thow FATAL_ERROR when using post-processing functions after pico_add_extra_outputs
* Remove property definition, and rename to `PICOTOOL_PROCESSING_CONFIGURED` and `picotool_check_configurable`
* done -> configured
message(FATAL_ERROR "All picotool post-processing functions for \"${TARGET}\" must come before pico_add_extra_outputs(${TARGET})")
153
+
endif()
154
+
endfunction()
155
+
149
156
# Generate pio header and include it in the build
150
157
# PICO_CMAKE_CONFIG: PICO_DEFAULT_PIOASM_OUTPUT_FORMAT, Default output format used by pioasm when using pico_generate_pio_header, type=string, default=c-sdk, group=build
151
158
function(pico_generate_pio_header TARGET PIO)
@@ -198,6 +205,7 @@ endfunction()
198
205
# dropping, and it will be copied to SRAM by the bootrom before execution.
199
206
# This sets PICOTOOL_UF2_PACKAGE_ADDR to PACKADDR.
200
207
function(pico_package_uf2_output TARGET PACKADDR)
208
+
picotool_check_configurable(${TARGET})
201
209
set_target_properties(${TARGET} PROPERTIES
202
210
PICOTOOL_UF2_PACKAGE_ADDR ${PACKADDR}
203
211
)
@@ -207,6 +215,7 @@ endfunction()
207
215
# Output the public key hash and other necessary rows to an otp JSON file.
0 commit comments