From 64993905e5e34a5205c91e5b2b06ce62a9da954c Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Thu, 7 Mar 2024 13:04:56 +0100 Subject: [PATCH] mcu/fe310: Update to stock compiler Previously riscv64-unknown-elf toolchain from SiFive was used. Now there is commonly available version. Unfortunately it does not have required option icsr enabled. This adds -march=rv32imaczicsr to compiler while keeps -march=rv32imac for linker to be able to used default libraries. --- hw/bsp/hifive1/pkg.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/bsp/hifive1/pkg.yml b/hw/bsp/hifive1/pkg.yml index 51b90a78e5..f8adfc978c 100644 --- a/hw/bsp/hifive1/pkg.yml +++ b/hw/bsp/hifive1/pkg.yml @@ -33,5 +33,6 @@ pkg.deps: pkg.deps.UART_0: - "@apache-mynewt-core/hw/drivers/uart/uart_hal" -pkg.cflags: -march=rv32imac -mabi=ilp32 +pkg.cflags: -march=rv32imaczicsr -mabi=ilp32 +pkg.lflags: -march=rv32imac -mabi=ilp32