From f7545d66c49f52d08de710d738000a85456608ca Mon Sep 17 00:00:00 2001 From: William Vinnicombe Date: Tue, 27 Aug 2024 10:17:58 +0100 Subject: [PATCH] Don't run coprodis on Risc-V or RP2040 binaries --- 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 b9bd6398f..62ff2261c 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