From ae020ab87573c7a9250f09f0a700ce323a1716eb Mon Sep 17 00:00:00 2001 From: Marno van der Maas Date: Mon, 22 Apr 2024 11:32:24 +0100 Subject: [PATCH] Set objcopy to RISC-V --- sw/c/gcc_toolchain.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/sw/c/gcc_toolchain.cmake b/sw/c/gcc_toolchain.cmake index d84d1afd..00d9e242 100644 --- a/sw/c/gcc_toolchain.cmake +++ b/sw/c/gcc_toolchain.cmake @@ -1,6 +1,7 @@ set(LINKER_SCRIPT "${CMAKE_CURRENT_LIST_DIR}/../common/link.ld") set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_C_COMPILER riscv32-unknown-elf-gcc) +set(CMAKE_OBJCOPY riscv32-unknown-elf-objcopy) set(CMAKE_C_FLAGS_INIT "-march=rv32imc -mabi=ilp32 -mcmodel=medany -Wall -fvisibility=hidden -ffreestanding") set(CMAKE_ASM_FLAGS_INIT "-march=rv32imc")