From a2a4c2041ea8dc16e804e020d3b7e9f1588d2adf Mon Sep 17 00:00:00 2001 From: will-v-pi <108662275+will-v-pi@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:22:15 +0100 Subject: [PATCH] Don't run coprodis on Risc-V or RP2040 binaries (#1875) --- src/cmake/on_device.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmake/on_device.cmake b/src/cmake/on_device.cmake index dbf22a74f..5cabf3cc9 100644 --- a/src/cmake/on_device.cmake +++ b/src/cmake/on_device.cmake @@ -29,7 +29,8 @@ function(pico_add_dis_output TARGET) pico_get_runtime_output_directory(${TARGET} output_path) # PICO_CMAKE_CONFIG: PICO_NO_COPRO_DIS, Disable disassembly listing postprocessing that disassembles RP2350 coprocessor instructions, type=bool, default=0, group=build - if (NOT (PICO_NO_COPRO_DIS OR PICO_NO_PICOTOOL)) + if (NOT (PICO_NO_COPRO_DIS OR PICO_NO_PICOTOOL OR PICO_RISCV OR PICO_RP2040)) + # Don't run coprocessor dissassembly on Risc-V or RP2040, as those don't have the RP2350 coprocessors pico_init_picotool() if(picotool_FOUND) # add custom disassembly if we have picotool