mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
boards: risc-v: k210: Fix -march and -mabi
-march=rv64gc -mabi=lp64 does not resolve lib paths for riscv64-unknown-elf-gcc resulting in lib not found errors. Changing it to -march=rv64imafc -mabi=lp64f that is the default used in Sipeed repositories. Signed-off-by: Matheus Castello <matheus@castello.eng.br>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
535fb12a26
commit
1bc3ab513d
@@ -41,7 +41,7 @@ ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
ARCHCPUFLAGS = -march=rv64gc -mabi=lp64 -mcmodel=medany
|
||||
ARCHCPUFLAGS = -march=rv64imafc -mabi=lp64f -mcmodel=medany
|
||||
ARCHCFLAGS = -fno-builtin -ffunction-sections -fdata-sections
|
||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
||||
|
||||
Reference in New Issue
Block a user