Skip to content

Commit

Permalink
Set objcopy to RISC-V
Browse files Browse the repository at this point in the history
  • Loading branch information
marnovandermaas committed Apr 22, 2024
1 parent 79b4f81 commit ae020ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/c/gcc_toolchain.cmake
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit ae020ab

Please sign in to comment.